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

block_params: 
comment: 
- !ruby/struct:SM::Flow::P 
  body: Validates that the logic evaluates to true
- !ruby/struct:SM::Flow::VERB 
  body: "  class Address\n    include Validatable\n    validates_each :zip_code, :logic =&gt; lambda { errors.add(:zip_code, &quot;is not valid&quot;) if ZipCodeService.allows(zip_code) }\n  end\n"
- !ruby/struct:SM::Flow::P 
  body: The logic option is required.
- !ruby/struct:SM::Flow::P 
  body: "Configuration options:"
- !ruby/struct:SM::Flow::VERB 
  body: "    * after_validate - A block that executes following the run of a validation\n    * group - The group that this validation belongs to.  A validation can belong to multiple groups\n    * if - A block that when executed must return true of the validation will not occur\n    * level - The level at which the validation should occur\n    * logic - A block that executes to perform the validation\n    * message - The message to add to the errors collection when the validation fails\n    * times - The number of times the validation applies\n"
full_name: Validatable::Macros#validates_each
is_singleton: false
name: validates_each
params: " validates_each(*args)\n"
visibility: public
