提交 6ef60bd9 编写于 作者: J José Valim

Ensure timestamps are not generated when explicitly set to false [#5440 state:resolved]

上级 7d71b785
......@@ -61,7 +61,7 @@ def update(*args) #:nodoc:
end
def should_record_timestamps?
record_timestamps && !partial_updates? || changed?
record_timestamps && (!partial_updates? || changed?)
end
def timestamp_attributes_for_update_in_model
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册