1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
rails--rails/actionpack/test/journey
Godfrey Chan ff1192fea4 Eliminate JSON.{parse,load,generate,dump} and def to_json
JSON.{dump,generate} offered by the JSON gem is not compatiable with
Rails at the moment and can cause a lot of subtle bugs when passed
certain data structures. This changed all direct usage of the JSON gem
in internal Rails code to always go through AS::JSON.{decode,encode}.

We also shouldn't be implementing `to_json` most of the time, and
these occurances are replaced with an equivilent `as_json`
implementation to avoid problems down the road.

See [1] for all the juicy details.

[1]: intridea/multi_json#138 (comment)
2013-11-05 22:26:45 -08:00
..
gtg Eliminate JSON.{parse,load,generate,dump} and def to_json 2013-11-05 22:26:45 -08:00
nfa Use ActiveSupport::TestCase in the journey tests 2012-12-31 14:40:43 -03:00
nodes Use ActiveSupport::TestCase in the journey tests 2012-12-31 14:40:43 -03:00
path Make ActionDispatch::Journey::Path::Pattern#new raise more meaningful exception message. 2013-02-27 08:26:51 +08:00
route/definition Use ActiveSupport::TestCase in the journey tests 2012-12-31 14:40:43 -03:00
router Correct error in Utils.normalize_path that changed paths improperly 2013-10-23 16:44:23 -05:00
route_test.rb Change the behavior of route defaults 2013-01-15 17:22:25 +00:00
router_test.rb Skip Rack applications and redirects when generating urls 2013-07-16 13:39:17 +01:00
routes_test.rb Use ActiveSupport::TestCase in the journey tests 2012-12-31 14:40:43 -03:00