Module: Yogo::Collection::Data::ModelProperties

Defined in:
lib/yogo/collection/data/model_properties.rb

Class Method Summary collapse

Class Method Details

.extended(model) ⇒ Object



5
6
7
8
9
10
11
# File 'lib/yogo/collection/data/model_properties.rb', line 5

def self.extended(model)
  model.class_eval do
    property :id,           UUID, :key => true, :default => lambda { |p,r| UUIDTools::UUID.timestamp_create }
    property :created_at,   DateTime
    property :updated_at,   DateTime
  end
end