mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Remove useless find_partial method
This commit is contained in:
parent
020856c328
commit
405b4c7f1e
1 changed files with 1 additions and 5 deletions
|
@ -305,7 +305,7 @@ module ActionView
|
||||||
else
|
else
|
||||||
@template_keys = @locals.keys
|
@template_keys = @locals.keys
|
||||||
end
|
end
|
||||||
template = find_partial(@path, @template_keys)
|
template = find_template(@path, @template_keys)
|
||||||
@variable ||= template.variable
|
@variable ||= template.variable
|
||||||
else
|
else
|
||||||
if options[:cached]
|
if options[:cached]
|
||||||
|
@ -428,10 +428,6 @@ module ActionView
|
||||||
@object.to_ary if @object.respond_to?(:to_ary)
|
@object.to_ary if @object.respond_to?(:to_ary)
|
||||||
end
|
end
|
||||||
|
|
||||||
def find_partial(path, template_keys)
|
|
||||||
find_template(path, template_keys)
|
|
||||||
end
|
|
||||||
|
|
||||||
def find_template(path, locals)
|
def find_template(path, locals)
|
||||||
prefixes = path.include?(?/) ? [] : @lookup_context.prefixes
|
prefixes = path.include?(?/) ? [] : @lookup_context.prefixes
|
||||||
@lookup_context.find_template(path, prefixes, true, locals, @details)
|
@lookup_context.find_template(path, prefixes, true, locals, @details)
|
||||||
|
|
Loading…
Reference in a new issue