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 D:/Develope/RailsInstaller/Ruby1.8.7/lib/ruby/gems/1.8/gems/activemodel-3.0.9/lib/active_model/validator.rb, line 175
def initialize(options, &block)
  @block = block
  super
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.