Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

This project is archived and is in readonly mode.

Changeset [7148b933c4865a5140187d7ed792fd6df9b860a4] by Thilo Utke

Revision 7148b933c4865a5140187d7ed792fd6df9b860a4, committed by Thilo Utke · December 1st, 2010 @ 10:43 AM

ActiveModel::Errors.to_hash returns plain OrderedHash and used in to_json serialization to properly handle multiple errors per attribute [#5615 state:resolved]

Signed-off-by: José Valim jose.valim@gmail.com
https://github.com/rails/rails/commit/7148b933c4865a5140187d7ed792f...

4 changed files

  • M activemodel/lib/active_model/errors.rb
  • M activemodel/test/cases/errors_test.rb
  • M activemodel/test/cases/serializeration/json_serialization_test.rb
  • M activemodel/test/cases/validations_test.rb