Method: StorageRoom::Collection#load_associated_collections
- Defined in:
- lib/storage_room/models/collection.rb
#load_associated_collections ⇒ Object
Load all Collections that are related to the current one through AssociationFields
67 68 69 70 71 72 73 74 |
# File 'lib/storage_room/models/collection.rb', line 67 def load_associated_collections array = association_fields if array.map{|f| f.collection_loaded?}.include?(false) StorageRoom.log("Fetching associated collections for '#{name}'") array.each{|f| f.collection} end end |