lib/dato/local/items_repo.rb in dato-0.3.25 vs lib/dato/local/items_repo.rb in dato-0.3.26
- old
+ new
@@ -52,10 +52,12 @@
def single_instance_item_types
item_types.select(&:singleton)
end
def collection_item_types
- item_types - single_instance_item_types
+ item_types.select do |item_type|
+ !item_type.singleton && !item_type.modular_block
+ end
end
def items_of_type(item_type)
method = item_type_methods[item_type]