mirror of https://github.com/rails/rails
make the cops happy
This commit is contained in:
parent
8d539bde7b
commit
4a4a8be064
|
@ -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)
|
||||
|
|
|
@ -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