1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

each yields per message not per attribute

This commit is contained in:
Jeremy Kemper 2009-06-08 19:30:12 -07:00
parent e1f679a020
commit 14de1a9597

View file

@ -96,6 +96,7 @@ module ActiveModel
full_messages = [] full_messages = []
each do |attribute, messages| each do |attribute, messages|
messages = Array.wrap(messages)
next if messages.empty? next if messages.empty?
if attribute == :base if attribute == :base