提交 0ebbd063 编写于 作者: S Sean Griffin 提交者: Alan Wu

Fix failing test

b63701e2 moved the assignment before the query, but we need to capture
our old id before assignment in case we are assigning the id.
上级 7a183bd5
......@@ -471,6 +471,7 @@ def update_columns(attributes)
verify_readonly_attribute(key.to_s)
end
id_in_database = self.id_in_database
attributes.each do |k, v|
write_attribute_without_type_cast(k, v)
end
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册