Module: ZTK::DSL::Core::Actions::Timestamps 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:

Defined Under Namespace

Modules: ClassMethods

Class Method Summary (collapse)

Class Method Details

+ (Object) included(base)

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.



7
8
9
10
11
12
13
14
15
# File 'lib/ztk/dsl/core/actions/timestamps.rb', line 7

def self.included(base)
  base.class_eval do
    base.send(:extend, ZTK::DSL::Core::Actions::Timestamps::ClassMethods)
  end
  base.instance_eval do
    attribute :created_at
    attribute :updated_at
  end
end