1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
rails--rails/actionpack/lib/action_dispatch/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 Fix indentation issuing warning 2012-12-20 20:19:36 -02:00
nodes
path Make ActionDispatch::Journey::Path::Pattern#new raise more meaningful exception message. 2013-02-27 08:26:51 +08:00
router Correct error in Utils.normalize_path that changed paths improperly 2013-10-23 16:44:23 -05:00
visualizer
backwards.rb
formatter.rb Skip Rack applications and redirects when generating urls 2013-07-16 13:39:17 +01:00
parser.rb
parser.y add missing semicolon to journey parser.y 2013-04-30 13:43:59 -05:00
parser_extras.rb
route.rb Skip Rack applications and redirects when generating urls 2013-07-16 13:39:17 +01:00
router.rb Don't remove trailing slash from PATH_INFO for mounted apps 2013-06-21 08:56:19 +02:00
routes.rb Clear named routes when routes.rb is reloaded 2013-07-21 17:11:52 +01:00
scanner.rb
visitors.rb Replace global Hash with TS::Cache. 2013-09-28 19:19:07 +02:00