Skip to content

Commit

Permalink
Remove ActionView::Renderer#render_template
Browse files Browse the repository at this point in the history
This seems to be making a pair with `#render_partial` but in reality
it's no longer refered to from anywhere. Since it is marked with
nodoc, I propose to get rid of it.

As far as I can tell from my non-comprehensive research,
this method was introduced in the commit b735761,
became practically private in f984907 and unused in 1bc0a59.
  • Loading branch information
sato11 committed Jan 5, 2024
1 parent a2ed343 commit 2af3d84
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions actionview/lib/action_view/renderer/renderer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -45,12 +45,6 @@ def render_body(context, options)
end
end

# Direct access to template rendering.
def render_template(context, options) # :nodoc:
render_template_to_object(context, options).body
end

# Direct access to partial rendering.
def render_partial(context, options, &block) # :nodoc:
render_partial_to_object(context, options, &block).body
end
Expand Down

0 comments on commit 2af3d84

Please sign in to comment.