Class: ManagedModel

Inherits:
Object
  • Object
show all
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

#operation, #to_proc

Instance Method Details

#operation_definitionsObject



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