instance method
record_error
Ruby on Rails 3.2.22.5
Since v3.1.12 Last seen in v3.2.22.5 PrivateAvailable in: v3.1.12 v3.2.22.5
Signature
record_error(record, attribute, name, value)
No documentation comment.
Parameters
-
recordreq -
attributereq -
namereq -
valuereq
Source
# 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
Defined in activemodel/lib/active_model/validations/format.rb line 31
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveModel::Validations::FormatValidator