Skip to content

Commit

Permalink
Ensure timestamps are not generated when explicitly set to false [#5440
Browse files Browse the repository at this point in the history
… state:resolved]
  • Loading branch information
josevalim committed Aug 24, 2010
1 parent 7d71b78 commit 6ef60bd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion activerecord/lib/active_record/timestamp.rb
Expand Up @@ -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
Expand Down

0 comments on commit 6ef60bd

Please sign in to comment.