mirror of
https://github.com/github/rails.git
synced 2026-01-10 15:17:57 -05:00
workaround for picking layouts based on wrong view_paths [#1974 state:resolved]
Signed-off-by: Joshua Peek <josh@joshpeek.com>
This commit is contained in:
@@ -885,6 +885,7 @@ module ActionController #:nodoc:
|
||||
layout = pick_layout(options)
|
||||
response.layout = layout.path_without_format_and_extension if layout
|
||||
logger.info("Rendering template within #{layout.path_without_format_and_extension}") if logger && layout
|
||||
layout = layout.path_without_format_and_extension if layout
|
||||
|
||||
if content_type = options[:content_type]
|
||||
response.content_type = content_type.to_s
|
||||
|
||||
Reference in New Issue
Block a user