Module: ZTK::DSL::Core::Actions::Timestamps::ClassMethods Private

Defined in:
lib/ztk/dsl/core/actions/timestamps.rb

Overview

This module is part of a private API. You should avoid using this module if possible, as it may be removed or be changed in the future.

Author:

Instance Method Summary (collapse)

Instance Method Details

- (Object) created_at_timestamp

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



24
25
26
# File 'lib/ztk/dsl/core/actions/timestamps.rb', line 24

def created_at_timestamp
  self.created_at ||= Time.now
end

- (Object) updated_at_timestamp

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



20
21
22
# File 'lib/ztk/dsl/core/actions/timestamps.rb', line 20

def updated_at_timestamp
  self.updated_at = Time.now
end