instance method
should_record_timestamps?
Ruby on Rails 3.2.22.5
Since v3.0.20 PrivateSignature
should_record_timestamps?()
No documentation comment.
Source
# File activerecord/lib/active_record/timestamp.rb, line 74
def should_record_timestamps?
self.record_timestamps && (!partial_updates? || changed? || (attributes.keys & self.class.serialized_attributes.keys).present?)
end
Defined in activerecord/lib/active_record/timestamp.rb line 74
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveRecord::Timestamp