提交 9a517b5a 编写于 作者: R Rafael Mendonça França

Merge pull request #17545 from marzapower/dirty_public_api

[Enh] Made the ActiveModel::Dirty#clear_attribute_changes method public
......@@ -255,7 +255,7 @@ def set_attribute_was(attr, old_value)
end
# Remove changes information for the provided attributes.
def clear_attribute_changes(attributes)
def clear_attribute_changes(attributes) # :doc:
attributes_changed_by_setter.except!(*attributes)
end
end
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册