From 6ef60bd9ffff44187b3016d00923835a609293bf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Valim?= Date: Tue, 24 Aug 2010 10:45:16 -0300 Subject: Ensure timestamps are not generated when explicitly set to false [#5440 state:resolved] --- activerecord/lib/active_record/timestamp.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/activerecord/lib/active_record/timestamp.rb b/activerecord/lib/active_record/timestamp.rb index c6ff4b39fa..a7583f06cc 100644 --- a/activerecord/lib/active_record/timestamp.rb +++ b/activerecord/lib/active_record/timestamp.rb @@ -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 -- cgit v1.2.3