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

block_params: msg
comment: 
- !ruby/struct:SM::Flow::P 
  body: Yields each full error message added. So Person.errors.add(&quot;first_name&quot;, &quot;can't be empty&quot;) will be returned through iteration as &quot;First name can't be empty&quot;.
- !ruby/struct:SM::Flow::H 
  level: 4
  text: Examples
- !ruby/struct:SM::Flow::VERB 
  body: "  my_person = Person.new(params[:person])\n\n  my_person.errors.add('login', 'can not be empty') if my_person.login == ''\n  my_person.errors.add('password', 'can not be empty') if my_person.password == ''\n  messages = ''\n  my_person.errors.each_full {|msg| messages += msg + &quot;&lt;br/&gt;&quot;}\n  messages\n  # =&gt; &quot;Login can not be empty&lt;br /&gt;Password can not be empty&lt;br /&gt;&quot;\n"
full_name: ActiveResource::Errors#each_full
is_singleton: false
name: each_full
params: () {|msg| ...}
visibility: public
