diff options
author | José Valim <jose.valim@gmail.com> | 2011-05-03 16:51:08 +0200 |
---|---|---|
committer | José Valim <jose.valim@gmail.com> | 2011-05-03 16:51:47 +0200 |
commit | f9849070acb4c7df0b60c61cea3a927191851e92 (patch) | |
tree | 0ac9c778331d7be47c83e1eabafb88c2175718ce /actionpack/lib/abstract_controller | |
parent | f82767e276b7f6fcd7c0770348cb8f1716365dba (diff) | |
download | rails-f9849070acb4c7df0b60c61cea3a927191851e92.tar.gz rails-f9849070acb4c7df0b60c61cea3a927191851e92.tar.bz2 rails-f9849070acb4c7df0b60c61cea3a927191851e92.zip |
Add a shared entry point for AV and AC render which can be used as extension in the future.
Diffstat (limited to 'actionpack/lib/abstract_controller')
-rw-r--r-- | actionpack/lib/abstract_controller/rendering.rb | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/actionpack/lib/abstract_controller/rendering.rb b/actionpack/lib/abstract_controller/rendering.rb index db6ff41f55..7f1a790ecc 100644 --- a/actionpack/lib/abstract_controller/rendering.rb +++ b/actionpack/lib/abstract_controller/rendering.rb @@ -132,11 +132,7 @@ module AbstractController # Find and renders a template based on the options given. # :api: private def _render_template(options) #:nodoc: - if options.key?(:partial) - view_renderer.render_partial(view_context, options) - else - view_renderer.render_template(view_context, options) - end + view_renderer.render(view_context, options) end # The prefixes used in render "foo" shortcuts. |