Class | DataMapper::Validations::ValidationErrors |
In: |
lib/dm-validations/validation_errors.rb
|
Parent: | Object |
@author Guy van den Berg @since 0.9
resource | [R] |
Holds a hash with all the default error messages that can be replaced by your own copy or localizations.
Add a validation error. Use the field_name :general if the errors does not apply to a specific field of the Resource.
@param [Symbol] field_name
The name of the field that caused the error
@param [String] message
The message to add