Module: Recliner::Timestamps::ClassMethods

Defined in:
lib/recliner/timestamps.rb

Instance Method Summary collapse

Instance Method Details

#timestamps!Object

Defines timestamp properties created_at and updated_at. When the document is created or updated, these properties will be respectively updated.



16
17
18
19
# File 'lib/recliner/timestamps.rb', line 16

def timestamps!
  property :created_at, Time
  property :updated_at, Time
end