Module: Yogo::Collection::Base::ModelConfiguration
- Included in:
- Yogo::Collection::Base
- Defined in:
- lib/yogo/collection/base/model_configuration.rb
Instance Method Summary collapse
- #after_model_generate(model) ⇒ Object
- #after_model_update(model) ⇒ Object
- #before_model_generate ⇒ Object
- #before_model_update(model) ⇒ Object
- #model_generate ⇒ Object
- #model_update(model) ⇒ Object
Instance Method Details
#after_model_generate(model) ⇒ Object
14 15 16 17 18 |
# File 'lib/yogo/collection/base/model_configuration.rb', line 14 def after_model_generate(model) model.extend(Base::Model) model.send(:include, Base::Model::InstanceMethods) model.extend(Base::ModelCollectionContext) end |
#after_model_update(model) ⇒ Object
28 29 30 |
# File 'lib/yogo/collection/base/model_configuration.rb', line 28 def after_model_update(model) model end |
#before_model_generate ⇒ Object
11 12 |
# File 'lib/yogo/collection/base/model_configuration.rb', line 11 def before_model_generate end |
#before_model_update(model) ⇒ Object
24 25 26 |
# File 'lib/yogo/collection/base/model_configuration.rb', line 24 def before_model_update(model) model end |
#model_generate ⇒ Object
7 8 9 |
# File 'lib/yogo/collection/base/model_configuration.rb', line 7 def model_generate ::DataMapper::Model.new end |
#model_update(model) ⇒ Object
20 21 22 |
# File 'lib/yogo/collection/base/model_configuration.rb', line 20 def model_update(model) model end |