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 [d321e78646e1ba0ad012900008421e0b05541b9d] by Thilo Utke

Revision d321e78646e1ba0ad012900008421e0b05541b9d, committed by Thilo Utke · December 1st, 2010 @ 11:03 AM

ActiveModel::Errors.to_hash returns plain OrderedHash and used in to_json serialization to properly handle multiple errors per attribute

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

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