mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Remove unneeded association.respond_to?(:reset_scope)
Since 86390c3
all associations have `reset_scope` so `respond_to?` is
unneeded.
This commit is contained in:
parent
0714251b2d
commit
61fc1538c9
1 changed files with 1 additions and 1 deletions
|
@ -389,7 +389,7 @@ module ActiveRecord
|
|||
autosave = reflection.options[:autosave]
|
||||
|
||||
# reconstruct the scope now that we know the owner's id
|
||||
association.reset_scope if association.respond_to?(:reset_scope)
|
||||
association.reset_scope
|
||||
|
||||
if records = associated_records_to_validate_or_save(association, @new_record_before_save, autosave)
|
||||
if autosave
|
||||
|
|
Loading…
Reference in a new issue