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

This commit is contained in:
José Valim
2010-08-24 10:45:16 -03:00
parent 5ccdb362b4
commit c857bd23c0

View File

@@ -61,7 +61,7 @@ module ActiveRecord
end
def should_record_timestamps?
record_timestamps && !partial_updates? || changed?
record_timestamps && (!partial_updates? || changed?)
end
def timestamp_attributes_for_update_in_model