Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Add a TODO so we remember to fix partial layouts

  • Loading branch information...
commit 86c7b144fadf87736cf3d7e623d56eddae8e9963 1 parent c3a0a36
Yehuda Katz + Carl Lerche authored
Showing with 3 additions and 0 deletions.
  1. +3 −0  actionpack/lib/abstract_controller/layouts.rb
View
3  actionpack/lib/abstract_controller/layouts.rb
@@ -145,6 +145,9 @@ def render_to_body(options = {})
# 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 }
Please sign in to comment.
Something went wrong with that request. Please try again.