module ZTK::DSL::Core::Actions::Timestamps::ClassMethods
@author Zachary Patten <zpatten AT jovelabs DOT io>
Public Instance Methods
created_at_timestamp()
click to toggle source
# File lib/ztk/dsl/core/actions/timestamps.rb, line 24 def created_at_timestamp self.created_at ||= Time.now end
updated_at_timestamp()
click to toggle source
# File lib/ztk/dsl/core/actions/timestamps.rb, line 20 def updated_at_timestamp self.updated_at = Time.now end