class ActiveModel::EachValidator
def initialize(options)
+options+ reader, however the :attributes option will be removed
Returns a new validator instance. All options will be available via the
def initialize(options) @attributes = Array(options.delete(:attributes)) raise ArgumentError, ":attributes cannot be blank" if @attributes.empty? super check_validity! end