Module: Yogo::Collection::Base::ModelCollectionContext
- Defined in:
- lib/yogo/collection/base/model_collection_context.rb
Instance Method Summary collapse
- #collection ⇒ Object
- #current_collection ⇒ Object
- #default_repository_name ⇒ Object
- #default_storage_name ⇒ Object
Instance Method Details
#collection ⇒ Object
11 12 13 |
# File 'lib/yogo/collection/base/model_collection_context.rb', line 11 def collection current_collection end |
#current_collection ⇒ Object
7 8 9 |
# File 'lib/yogo/collection/base/model_collection_context.rb', line 7 def current_collection Yogo::Collection.context.last end |
#default_repository_name ⇒ Object
19 20 21 |
# File 'lib/yogo/collection/base/model_collection_context.rb', line 19 def default_repository_name (current_collection && current_collection.collection_repository_name) || super end |
#default_storage_name ⇒ Object
15 16 17 |
# File 'lib/yogo/collection/base/model_collection_context.rb', line 15 def default_storage_name (current_collection && current_collection.collection_storage_name) || super end |