Skip to content

Commit

Permalink
Merge pull request #36191 from st0012/remove-useless-method
Browse files Browse the repository at this point in the history
Remove unnecessary find_partial method
  • Loading branch information
kamipo committed May 6, 2019
2 parents 020856c + 405b4c7 commit f0e2582
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions actionview/lib/action_view/renderer/partial_renderer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,7 @@ def render(context, options, block)
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]
Expand Down Expand Up @@ -428,10 +428,6 @@ def collection_from_object
@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)
Expand Down

0 comments on commit f0e2582

Please sign in to comment.