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:
parent
c3a0a36fc3
commit
86c7b144fa
1 changed files with 3 additions and 0 deletions
|
@ -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 }
|
||||
|
|
Loading…
Reference in a new issue