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)
|
template = find_template(partial, @locals.keys + iter_vars)
|
||||||
|
|
||||||
layout = if !block && (layout = @options[:layout])
|
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
|
end
|
||||||
|
|
||||||
render_collection(collection, context, partial, template, layout, block)
|
render_collection(collection, context, partial, template, layout, block)
|
||||||
|
@ -129,8 +129,8 @@ module ActionView
|
||||||
end
|
end
|
||||||
|
|
||||||
collection_body = if template
|
collection_body = if template
|
||||||
cache_collection_render(payload, view, template, collection) do |collection|
|
cache_collection_render(payload, view, template, collection) do |filtered_collection|
|
||||||
collection_with_template(view, template, layout, collection)
|
collection_with_template(view, template, layout, filtered_collection)
|
||||||
end
|
end
|
||||||
else
|
else
|
||||||
collection_with_template(view, nil, layout, collection)
|
collection_with_template(view, nil, layout, collection)
|
||||||
|
|
|
@ -100,7 +100,6 @@ module ActionView
|
||||||
end
|
end
|
||||||
|
|
||||||
private
|
private
|
||||||
|
|
||||||
def collection_from_options(options)
|
def collection_from_options(options)
|
||||||
if options.key?(:collection)
|
if options.key?(:collection)
|
||||||
collection = options[:collection]
|
collection = options[:collection]
|
||||||
|
|
Loading…
Reference in New Issue