mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
b677adede0
- One regression introduced by the "AM errors as object" features is about the `full_messages` method. It's currently impossible to call that method if the `base` object passed in the constructor of `AM::Errors` doesn't respond to the `errors` method. That's because `full_messages` now makes a weird back and forth trip `AM::Errors#full_messages` -> `AM::Error#full_message` -> `AM::Errors#full_message` Since `full_message` (singular) isn't needed by AM::Errors, I moved it to the `AM::Error` (singular) class. This way we don't need to grab the `AM::Errors` object from the base. |
||
---|---|---|
.. | ||
absence_validation_test.rb | ||
association_validation_test.rb | ||
i18n_generate_message_validation_test.rb | ||
i18n_validation_test.rb | ||
length_validation_test.rb | ||
presence_validation_test.rb | ||
uniqueness_validation_test.rb |