mirror of
https://github.com/github/rails.git
synced 2026-04-26 03:00:59 -04:00
Make nested attributes behave like in 2.3.5 and add a sanity test for it with I18n.
This commit is contained in:
@@ -267,7 +267,7 @@ module ActiveRecord
|
||||
unless valid = association.valid?
|
||||
if reflection.options[:autosave]
|
||||
association.errors.each do |attribute, message|
|
||||
attribute = "#{reflection.name}_#{attribute}"
|
||||
attribute = "#{reflection.name}.#{attribute}"
|
||||
errors[attribute] << message if errors[attribute].empty?
|
||||
end
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user