mirror of
https://github.com/github/rails.git
synced 2026-04-26 03:00:59 -04:00
Add a TODO so we remember to fix partial layouts
This commit is contained in:
@@ -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 }
|
||||
|
||||
Reference in New Issue
Block a user