1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Renderer#_render_template should be private

Closes #12831
This commit is contained in:
Rafael Mendonça França 2013-11-19 22:51:49 -02:00
parent 1f88fedd6f
commit ed7e4932f4

View file

@ -77,13 +77,6 @@ module ActionView
@_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 @@ module ActionView
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