Module: DataMapped::Model
- Defined in:
- lib/data_mapped/model.rb
Class Method Summary collapse
Class Method Details
.included(other) ⇒ Object
16 17 18 19 20 21 22 23 |
# File 'lib/data_mapped/model.rb', line 16 def self.included(other) other.class_eval do include DataMapper::Resource property :id, DataMapper::Property::Serial property :created_at, DataMapper::Property::DateTime property :updated_at, DataMapper::Property::DateTime end end |