Class
Validatable::Errors
In:
lib/errors.rb
Parent:
Object
Methods
full_messages
on
raw
replace
Included Modules
Enumerable
Public Instance methods
full_messages → an_array_of_messages
Returns an array containing the full list of error messages.
on(attribute)
Returns nil, if no errors are associated with the specified
attribute
.
Returns the error message, if one error is associated with the specified
attribute
.
Returns an array of error messages, if more than one error is associated with the specified
attribute
.
raw(attribute)
Returns an array of error messages associated with the specified
attribute
.
replace(attribute)
Replaces the errors value for the given
attribute
[Validate]