class

ActiveModel::EachValidator

Inherits Reference < Object

Base for custom validates :x, upcase: true validators. Register: class UpcaseValidator < ActiveModel::EachValidator ... end ActiveModel::Validations.register_validator("upcase", UpcaseValidator)

Constructors

new(options : Value)

Instance methods

validate_each(record : ActiveModel::Validations, attribute : String, value : Value) : Nil