messages()
public
Returns a Hash of attributes with an array of
their error messages.
Updating this hash would still update errors state for backward
compatibility, but this behavior is deprecated.
# File activemodel/lib/active_model/errors.rb, line 340
def messages
DeprecationHandlingMessageHash.new(self)
end