diff options
author | Thibaut Courouble <thibaut@me.com> | 2012-04-17 19:02:40 +0300 |
---|---|---|
committer | Thibaut Courouble <thibaut@me.com> | 2012-04-17 19:02:40 +0300 |
commit | 0c948a587d5fd22d0d0465d81ced2be9b903a6f6 (patch) | |
tree | d2d0bb398e74ff3f80257d6bb934dfdcea74b075 | |
parent | 5bdf50dbccf65cc4b6a50fe44a98318e9b433b1f (diff) | |
download | rails-0c948a587d5fd22d0d0465d81ced2be9b903a6f6.tar.gz rails-0c948a587d5fd22d0d0465d81ced2be9b903a6f6.tar.bz2 rails-0c948a587d5fd22d0d0465d81ced2be9b903a6f6.zip |
Fix confusing example in ActiveModel::Errors
-rw-r--r-- | activemodel/lib/active_model/errors.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/activemodel/lib/active_model/errors.rb b/activemodel/lib/active_model/errors.rb index 016bf87d86..0c628c33c2 100644 --- a/activemodel/lib/active_model/errors.rb +++ b/activemodel/lib/active_model/errors.rb @@ -130,12 +130,12 @@ module ActiveModel # has more than one error message, yields once for each error message. # # p.errors.add(:name, "can't be blank") - # p.errors.each do |attribute, errors_array| + # p.errors.each do |attribute, error| # # Will yield :name and "can't be blank" # end # # p.errors.add(:name, "must be specified") - # p.errors.each do |attribute, errors_array| + # p.errors.each do |attribute, error| # # Will yield :name and "can't be blank" # # then yield :name and "must be specified" # end |