This project is archived and is in readonly mode.
#to_json not working because always being called on Object
-
Caio Chassot
you may also pull from me on github, the particular commit is:
http://github.com/kch/rails/commit/ab5750bc081eba31558deecd6234ef35...
-
Caio Chassot
- Tag changed from 2-3-stable, active_support, json to 2-3-stable, active_support, json, patch
-
Caio Chassot
Here's what is currently happen, without the patch:
When you call to json on any ruby object, you get Object#rails_to_json called, which will return a hash of instance variables, so for most objects, like strings, you get an empty hash: "{}"
-
Caio Chassot
adding git-formatted patch
-
Hongli Lai
Caio Chassot's patch does not seem to correctly pass arguments to #rails_to_json. This patch should fix the problem.
-
CancelProfileIsBroken
- Assigned user set to Pratik
+1 on Hongli's patch. Fixes multiple failures in the Rails test suite that were introduced with http://github.com/rails/rails/commit/2b5e4f38f5d7af912770f8a298ba2e... and currently preventing a clean Rails 2.3 build.
-
Pratik
- State changed from new to resolved
