aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRyuta Kamizono <kamipo@gmail.com>2019-05-07 02:41:57 +0900
committerGitHub <noreply@github.com>2019-05-07 02:41:57 +0900
commitf0e2582aa06347dca87548c95e722f5a2872d96e (patch)
tree184c0f3da94b70dfcc96de688033c74c55d3dcaa
parent020856c328085ffe4728afdab99e9008cc86d9e6 (diff)
parent405b4c7f1e078185b71d74629675336ad3d9c36a (diff)
downloadrails-f0e2582aa06347dca87548c95e722f5a2872d96e.tar.gz
rails-f0e2582aa06347dca87548c95e722f5a2872d96e.tar.bz2
rails-f0e2582aa06347dca87548c95e722f5a2872d96e.zip
Merge pull request #36191 from st0012/remove-useless-method
Remove unnecessary find_partial method
-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)