mirror of
https://github.com/github/rails.git
synced 2026-04-26 03:00:59 -04:00
Update for Active Model yielding per error not per attribute
This commit is contained in:
@@ -40,6 +40,7 @@ module ActiveRecord
|
||||
full_messages = []
|
||||
|
||||
each do |attribute, messages|
|
||||
messages = Array.wrap(messages)
|
||||
next if messages.empty?
|
||||
|
||||
if attribute == :base
|
||||
|
||||
Reference in New Issue
Block a user