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

block_params: attr, error.message
comment: 
- !ruby/struct:SM::Flow::P 
  body: Yields each attribute and associated message per error added.
- !ruby/struct:SM::Flow::VERB 
  body: "  class Company &lt; ActiveRecord::Base\n    validates_presence_of :name, :address, :email\n    validates_length_of :name, :in =&gt; 5..30\n  end\n\n  company = Company.create(:address =&gt; '123 First St.')\n  company.errors.each{|attr,msg| puts &quot;#{attr} - #{msg}&quot; }\n  # =&gt; name - is too short (minimum is 5 characters)\n  #    name - can't be blank\n  #    address - can't be blank\n"
full_name: ActiveRecord::Errors#each
is_singleton: false
name: each
params: () {|attr, error.message| ...}
visibility: public
