instance method
validate_each
Ruby on Rails 8.1.2
Since v3.0.20Signature
validate_each(record, attribute, value)
Override this method in subclasses with the validation logic, adding errors to the records errors array where necessary.
Parameters
-
recordreq -
attributereq -
valuereq
Source
# File activemodel/lib/active_model/validator.rb, line 161
def validate_each(record, attribute, value)
raise NotImplementedError, "Subclasses must implement a validate_each(record, attribute, value) method"
end
Defined in activemodel/lib/active_model/validator.rb line 161
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveModel::EachValidator