Skip to content

Commit

Permalink
This is the thrasing you get from trying to tweak via GH web!
Browse files Browse the repository at this point in the history
  • Loading branch information
dhh authored Sep 14, 2024
1 parent 9a94e58 commit 7a98174
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions lib/jbuilder/jbuilder_template.rb
Original file line number Diff line number Diff line change
Expand Up @@ -156,14 +156,6 @@ def _render_partial_with_options(options)
end

if collection.present?
if options.has_key?(:layout)
raise ::NotImplementedError, "The `:layout' option is not supported in collection rendering."
end

if options.has_key?(:spacer_template)
raise ::NotImplementedError, "The `:spacer_template' option is not supported in collection rendering."
end

results = CollectionRenderer
.new(@context.lookup_context, options) { |&block| _scope(&block) }
.render_collection_with_partial(collection, partial, @context, nil)
Expand Down

0 comments on commit 7a98174

Please sign in to comment.