mirror of https://github.com/rails/rails
make the cops happy
This commit is contained in:
parent
8d539bde7b
commit
4a4a8be064
|
@ -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)
|
||||
|
|
|
@ -100,7 +100,6 @@ module ActionView
|
|||
end
|
||||
|
||||
private
|
||||
|
||||
def collection_from_options(options)
|
||||
if options.key?(:collection)
|
||||
collection = options[:collection]
|
||||
|
|
Loading…
Reference in New Issue