mirror of
https://github.com/github/rails.git
synced 2026-04-26 03:00:59 -04:00
Ensure timestamps are not generated when explicitly set to false [#5440 state:resolved]
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user