Module: Yogo::Collection::Base::ModelCollectionContext

Defined in:
lib/yogo/collection/base/model_collection_context.rb

Instance Method Summary collapse

Instance Method Details

#collectionObject



11
12
13
# File 'lib/yogo/collection/base/model_collection_context.rb', line 11

def collection
  current_collection
end

#current_collectionObject



7
8
9
# File 'lib/yogo/collection/base/model_collection_context.rb', line 7

def current_collection
  Yogo::Collection.context.last
end

#default_repository_nameObject



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_nameObject



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