diff --git a/lib/jbuilder/collection_renderer.rb b/lib/jbuilder/collection_renderer.rb index 85844ee..c5a1706 100644 --- a/lib/jbuilder/collection_renderer.rb +++ b/lib/jbuilder/collection_renderer.rb @@ -44,8 +44,8 @@ def json @options[:locals].fetch(:json) end - def collection_with_template(view, template, layout, collection) - super(view, template, layout, ScopedIterator.new(collection, @scope)) + def collection_with_template(view, template, layout, collection, *args) + super(view, template, layout, ScopedIterator.new(collection, @scope), *args) end end