Method: ActiveModel::Errors#messages
- Defined in:
- lib/active_model/errors.rb
#messages ⇒ Object
Returns a Hash of attributes with an array of their error messages.
268 269 270 271 272 273 |
# File 'lib/active_model/errors.rb', line 268 def hash = to_hash hash.default = EMPTY_ARRAY hash.freeze hash end |