This project is archived and is in readonly mode.
Changeset [7bd85a8fc2d216a5e2b1d0380df572f782a54d1c] by José Valim
Revision 7bd85a8fc2d216a5e2b1d0380df572f782a54d1c,
committed by José Valim
· June 26th, 2010 @ 11:01 AM
Work around the fact the JSON gem was overwriting to_json implementation for all Ruby core classes.
This is required because the JSON gem is incompatible with Rails
behavior and was not allowing ActiveModel::Errors to be
serialized.
So we need to ensure Rails implementation is the one triggered.
[#4890 state:resolved]
http://github.com/rails/rails/commit/7bd85a8fc2d216a5e2b1d0380df572...
5 changed files
-
M
activemodel/lib/active_model/errors.rb -
M
activemodel/test/cases/validations/presence_validation_test.rb -
M
activemodel/test/cases/validations_test.rb -
M
activesupport/lib/active_support/json/encoding.rb -
M
activesupport/test/ordered_hash_test.rb