mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
parent
1f88fedd6f
commit
ed7e4932f4
1 changed files with 7 additions and 7 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue