1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Remove comment

This commit is contained in:
Julian Nadeau 2020-01-06 16:18:32 -05:00 committed by GitHub
parent 901d62c586
commit d93f1ab48c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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