Module: DatastaxRails::Timestamps

Extended by:
ActiveSupport::Concern
Included in:
Base
Defined in:
lib/datastax_rails/timestamps.rb

Overview

DatastaxRails Timestamps

DatastaxRails automatically timestamps create and update operations if the table has fields named created_at or updated_at.

Timestamping can be turned off by setting:

DatastaxRails::Base.record_timestamps = false

Instance Method Summary collapse

Instance Method Details

#initialize_dup(other) ⇒ Object

:nodoc:


18
19
20
21
# File 'lib/datastax_rails/timestamps.rb', line 18

def initialize_dup(other) # :nodoc:
  clear_timestamp_attributes
  super
end