class ActiveModel::BlockValidator

BlockValidator is a special EachValidator which receives a block on initialization and call this block for each attribute being validated. validates_each uses this Validator.

Public Class Methods

new(options, &block) click to toggle source
# File lib/active_model/validator.rb, line 175
def initialize(options, &block)
  @block = block
  super
end