aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/abstract_controller/renderer.rb
diff options
context:
space:
mode:
authorYehuda Katz <wycats@gmail.com>2009-08-07 01:51:50 -0300
committerYehuda Katz <wycats@gmail.com>2009-08-07 01:51:50 -0300
commit8534c5bf193c6a234d55116d520a54a1b634a93e (patch)
treeee3c604e911759f8f3962d7c7ea9d5c906b61eb5 /actionpack/lib/abstract_controller/renderer.rb
parent9b506484f1e72aeba2f1fd4af3e39cf450f1d4a9 (diff)
downloadrails-8534c5bf193c6a234d55116d520a54a1b634a93e.tar.gz
rails-8534c5bf193c6a234d55116d520a54a1b634a93e.tar.bz2
rails-8534c5bf193c6a234d55116d520a54a1b634a93e.zip
Start cleaning up partial path
Diffstat (limited to 'actionpack/lib/abstract_controller/renderer.rb')
-rw-r--r--actionpack/lib/abstract_controller/renderer.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/actionpack/lib/abstract_controller/renderer.rb b/actionpack/lib/abstract_controller/renderer.rb
index 4e368a099a..73e6b2a4dc 100644
--- a/actionpack/lib/abstract_controller/renderer.rb
+++ b/actionpack/lib/abstract_controller/renderer.rb
@@ -54,7 +54,7 @@ module AbstractController
# :api: plugin
def render_to_body(options = {})
# TODO: Refactor so we can just use the normal template logic for this
- if options[:_partial_object]
+ if options.key?(:_partial_object)
view_context.render_partial(options)
else
_determine_template(options)
@@ -77,7 +77,7 @@ module AbstractController
# _layout<ActionView::Template>:: The layout to wrap the template in (optional)
# _partial<TrueClass, FalseClass>:: Whether or not the template to be rendered is a partial
def _render_template(options)
- view_context.render_template(options[:_template], options[:_layout], options, options[:_partial])
+ view_context.render_template(options)
end
# The list of view paths for this controller. See ActionView::ViewPathSet for