未验证 提交 d93f1ab4 编写于 作者: J Julian Nadeau 提交者: GitHub

Remove comment

上级 901d62c5
......@@ -365,9 +365,6 @@ def normalize_reflection_attribute(indexed_attribute, reflection, index, attribu
# 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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册