Class: ManagedModel
- Inherits:
-
Object
- Object
- ManagedModel
- Includes:
- DataMapper::Resource, Yogo::DataMapper::Model::Configuration
- Defined in:
- lib/yogo/example/dynamic/project_full.rb
Instance Method Summary collapse
Methods included from Yogo::DataMapper::Model::Configuration
Instance Method Details
#operation_definitions ⇒ Object
28 29 30 |
# File 'lib/yogo/example/dynamic/project_full.rb', line 28 def operation_definitions model_operations.map{|model_op| model_op.to_a } end |
#update(model = nil) ⇒ Object
32 33 34 |
# File 'lib/yogo/example/dynamic/project_full.rb', line 32 def update(model=nil) to_proc.call(model || (@_model ||= DataMapper::Model.new)) end |