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
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
..
abstract_controller Make AC standalone rendering work 2013-09-10 11:01:12 -03:00
action_controller Improve wording in AC::ParameterMissing error message 2013-11-02 14:41:35 -05:00
action_dispatch Eliminate JSON.{parse,load,generate,dump} and def to_json 2013-11-05 22:26:45 -08:00
action_pack rails/master is now 4.1.0.beta 2013-04-29 13:15:24 -03:00
abstract_controller.rb No need for .rb extension 2013-08-25 11:39:09 +02:00
action_controller.rb Remove BasicRendering tests 2013-09-09 16:10:41 -03:00
action_dispatch.rb Remove extra whitespace 2013-04-06 00:54:44 +03:00
action_pack.rb Updated copyright notices for 2013 2012-12-31 20:35:29 +00:00