aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack
diff options
context:
space:
mode:
authorYehuda Katz + Carl Lerche <ykatz+clerche@engineyard.com>2009-08-25 15:04:09 -0700
committerYehuda Katz + Carl Lerche <ykatz+clerche@engineyard.com>2009-08-25 16:02:26 -0700
commit86c7b144fadf87736cf3d7e623d56eddae8e9963 (patch)
tree2122c00174d623eed7d1fc27e976245e06502c22 /actionpack
parentc3a0a36fc3c5e54ad44643b8c0470ccbd47d9a64 (diff)
downloadrails-86c7b144fadf87736cf3d7e623d56eddae8e9963.tar.gz
rails-86c7b144fadf87736cf3d7e623d56eddae8e9963.tar.bz2
rails-86c7b144fadf87736cf3d7e623d56eddae8e9963.zip
Add a TODO so we remember to fix partial layouts
Diffstat (limited to 'actionpack')
-rw-r--r--actionpack/lib/abstract_controller/layouts.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/actionpack/lib/abstract_controller/layouts.rb b/actionpack/lib/abstract_controller/layouts.rb
index a8bd2b80e1..ef66b24dd6 100644
--- a/actionpack/lib/abstract_controller/layouts.rb
+++ b/actionpack/lib/abstract_controller/layouts.rb
@@ -145,6 +145,9 @@ module AbstractController
# This is a little bit messy. We need to explicitly handle partial
# layouts here since the core lookup logic is in the view, but
# we need to determine the layout based on the controller
+ #
+ # TODO: An easier way to handle this would probably be to override
+ # render_template
if layout
layout = _layout_for_option(layout, options[:_template].details)
response = layout.render(view_context, options[:locals] || {}) { response }