Module: Epiphy::Entity::Timestamp

Defined in:
lib/epiphy/entity/timestamp.rb

Overview

Add created_at and updated_at field to an entity.

Since:

  • 0.1.0

Class Method Summary collapse

Class Method Details

.included(base) ⇒ Object

Since:

  • 0.1.0



8
9
10
# File 'lib/epiphy/entity/timestamp.rb', line 8

def self.included(base)
  base.send :attr_accessor, :created_at
end