1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Add a TODO so we remember to fix partial layouts

This commit is contained in:
Yehuda Katz + Carl Lerche 2009-08-25 15:04:09 -07:00
parent c3a0a36fc3
commit 86c7b144fa

View file

@ -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 }