mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Remove comment
This commit is contained in:
parent
901d62c586
commit
d93f1ab48c
1 changed files with 0 additions and 3 deletions
|
@ -365,9 +365,6 @@ module ActiveRecord
|
|||
# Is used as a before_save callback to check while saving a collection
|
||||
# association whether or not the parent was a new record before saving.
|
||||
def before_save_collection_association
|
||||
# If we defined a callback that updates the object before we defined the association, then this ivar may end up being
|
||||
# manipulated to being `false` when it should be `true`. We guard this be only defining it once.
|
||||
# See https://github.com/rails/rails/issues/38120 for more details
|
||||
unless defined?(@new_record_before_save)
|
||||
@new_record_before_save = new_record?
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue