Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Renderer#_render_template should be private

Closes #12831
  • Loading branch information...
commit ed7e4932f48865091e9876f5485a79598a6d3e82 1 parent 1f88fed
Rafael Mendonça França rafaelfranca authored
Showing with 7 additions and 7 deletions.
  1. +7 −7 actionview/lib/action_view/rendering.rb
14 actionview/lib/action_view/rendering.rb
View
@@ -77,13 +77,6 @@ def view_renderer
@_view_renderer ||= ActionView::Renderer.new(lookup_context)
end
- # Find and renders a template based on the options given.
- # :api: private
- def _render_template(options) #:nodoc:
- lookup_context.rendered_format = nil if options[:formats]
- view_renderer.render(view_context, options)
- end
-
def render_to_body(options = {})
_process_options(options)
_render_template(options)
@@ -95,6 +88,13 @@ def rendered_format
private
+ # Find and renders a template based on the options given.
+ # :api: private
+ def _render_template(options) #:nodoc:
+ lookup_context.rendered_format = nil if options[:formats]
+ view_renderer.render(view_context, options)
+ end
+
# Assign the rendered format to lookup context.
def _process_format(format) #:nodoc:
super
Please sign in to comment.
Something went wrong with that request. Please try again.