This project is archived and is in readonly mode.

Changeset [7bd85a8fc2d216a5e2b1d0380df572f782a54d1c] 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...

Committed by José Valim

  • 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

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

<h2 style="font-size: 14px">Tickets have moved to Github</h2>

The new ticket tracker is available at <a href="https://github.com/rails/rails/issues">https://github.com/rails/rails/issues</a>