Module: Upmin::DataMapper::Model
- Extended by:
- ActiveSupport::Concern
- Defined in:
- lib/upmin/data_mapper/model.rb
Defined Under Namespace
Modules: ClassMethods
Instance Method Summary collapse
Instance Method Details
#new_record? ⇒ Boolean
5 6 7 |
# File 'lib/upmin/data_mapper/model.rb', line 5 def new_record? return model.new? end |
#to_key ⇒ Object
9 10 11 |
# File 'lib/upmin/data_mapper/model.rb', line 9 def to_key return [model.id] end |