make the cops happy

This commit is contained in:
Aaron Patterson 2020-02-27 15:38:20 -08:00
parent 8d539bde7b
commit 4a4a8be064
No known key found for this signature in database
GPG Key ID: 953170BCB4FFAFC6
2 changed files with 3 additions and 4 deletions

View File

@ -89,7 +89,7 @@ module ActionView
template = find_template(partial, @locals.keys + iter_vars)
layout = if !block && (layout = @options[:layout])
find_template(layout.to_s, @locals.keys + iter_vars)
find_template(layout.to_s, @locals.keys + iter_vars)
end
render_collection(collection, context, partial, template, layout, block)
@ -129,8 +129,8 @@ module ActionView
end
collection_body = if template
cache_collection_render(payload, view, template, collection) do |collection|
collection_with_template(view, template, layout, collection)
cache_collection_render(payload, view, template, collection) do |filtered_collection|
collection_with_template(view, template, layout, filtered_collection)
end
else
collection_with_template(view, nil, layout, collection)

View File

@ -100,7 +100,6 @@ module ActionView
end
private
def collection_from_options(options)
if options.key?(:collection)
collection = options[:collection]