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:
parent
e1f679a020
commit
14de1a9597
1 changed files with 1 additions and 0 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue