Methods

Class/Module Index [+]

Quicksearch

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 173
def initialize(options, &block)
  @block = block
  super
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.