aboutsummaryrefslogtreecommitdiffstats
path: root/actionview/lib
diff options
context:
space:
mode:
authorst0012 <stan001212@gmail.com>2019-05-07 01:21:07 +0800
committerst0012 <stan001212@gmail.com>2019-05-07 01:21:07 +0800
commit405b4c7f1e078185b71d74629675336ad3d9c36a (patch)
tree184c0f3da94b70dfcc96de688033c74c55d3dcaa /actionview/lib
parent020856c328085ffe4728afdab99e9008cc86d9e6 (diff)
downloadrails-405b4c7f1e078185b71d74629675336ad3d9c36a.tar.gz
rails-405b4c7f1e078185b71d74629675336ad3d9c36a.tar.bz2
rails-405b4c7f1e078185b71d74629675336ad3d9c36a.zip
Remove useless find_partial method
Diffstat (limited to 'actionview/lib')
-rw-r--r--actionview/lib/action_view/renderer/partial_renderer.rb6
1 files changed, 1 insertions, 5 deletions
diff --git a/actionview/lib/action_view/renderer/partial_renderer.rb b/actionview/lib/action_view/renderer/partial_renderer.rb
index dc85750a22..608e417583 100644
--- a/actionview/lib/action_view/renderer/partial_renderer.rb
+++ b/actionview/lib/action_view/renderer/partial_renderer.rb
@@ -305,7 +305,7 @@ module ActionView
else
@template_keys = @locals.keys
end
- template = find_partial(@path, @template_keys)
+ template = find_template(@path, @template_keys)
@variable ||= template.variable
else
if options[:cached]
@@ -428,10 +428,6 @@ module ActionView
@object.to_ary if @object.respond_to?(:to_ary)
end
- def find_partial(path, template_keys)
- find_template(path, template_keys)
- end
-
def find_template(path, locals)
prefixes = path.include?(?/) ? [] : @lookup_context.prefixes
@lookup_context.find_template(path, prefixes, true, locals, @details)