--- !ruby/object:RI::MethodDescription 
aliases: []

block_params: 
comment: 
- !ruby/struct:SM::Flow::P 
  body: "Adds a validation for each of the given attributes using the supplied block. The block must accept three arguments: instance, attribute and value, e.g.:"
- !ruby/struct:SM::Flow::VERB 
  body: "  validates_each :name, :password do |object, attribute, value|\n    object.errors[attribute] &lt;&lt; 'is not nice' unless value.nice?\n  end\n"
full_name: Validation::ClassMethods#validates_each
is_singleton: false
name: validates_each
params: (*atts, &block)
visibility: public
