method
record_error
v4.0.2 -
Show latest stable
- Class:
ActiveModel::Validations::FormatValidator
record_error(record, attribute, name, value)private
No documentation available.
# File activemodel/lib/active_model/validations/format.rb, line 31
def record_error(record, attribute, name, value)
record.errors.add(attribute, :invalid, options.except(name).merge!(:value => value))
end