class EachValidator
Ruby on Rails 8.1.2
Since v3.0.20Active Model EachValidator
EachValidator is a validator which iterates through the attributes given in the options hash invoking the validate_each method passing in the record, attribute, and value.
All Active Model validations are built on top of this validator.
Inherits from
Attributes
Methods (defined here)
- # check_validity!
- # validate
- # validate_each
- self. new
Private methods
(1)
Implementation detail — not part of the public API.
Methods (inherited)
From ActiveModel::Validator (4)
From Object (17)
- # acts_like?
- # blank?
- # deep_dup
- # duplicable?
- # html_safe?
- # in?
- # instance_values
- # instance_variable_names
- # presence
- # presence_in
- # present?
- # to_param
- # to_query
- # try
- # try!
- # with
- # with_options
From ActiveSupport::NumericWithFormat (2)
- # to_formatted_s
- # to_fs