pakyow-presenter/lib/pakyow/presenter/view_composer.rb in pakyow-presenter-0.11.1 vs pakyow-presenter/lib/pakyow/presenter/view_composer.rb in pakyow-presenter-0.11.2
- old
+ new
@@ -163,10 +163,10 @@
def scope(name)
collection = parts.scope(name)
if collection.is_a?(ViewVersion)
- collection = collection.versions.inject(ViewCollection.new) { |c, v| c << v; c }
+ collection = collection.versions.inject(ViewCollection.new(name)) { |c, v| c << v; c }
end
# include partials so nested scopes/props can be bound to
collection.each do |view|
view.includes(partials)