From 86c7b144fadf87736cf3d7e623d56eddae8e9963 Mon Sep 17 00:00:00 2001 From: Yehuda Katz + Carl Lerche Date: Tue, 25 Aug 2009 15:04:09 -0700 Subject: Add a TODO so we remember to fix partial layouts --- actionpack/lib/abstract_controller/layouts.rb | 3 +++ 1 file changed, 3 insertions(+) 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 } -- cgit v1.2.3