Skip to content
Browse files

Ensure timestamps are not generated when explicitly set to false [#5440

… state:resolved]
  • Loading branch information...
1 parent 7d71b78 commit 6ef60bd9ffff44187b3016d00923835a609293bf @josevalim josevalim committed Aug 24, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 activerecord/lib/active_record/timestamp.rb
View
2 activerecord/lib/active_record/timestamp.rb
@@ -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

0 comments on commit 6ef60bd

Please sign in to comment.
Something went wrong with that request. Please try again.