mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Ensure the full path is used when searching for layouts [#1803 state:resolved]
This commit is contained in:
parent
5fe6635e05
commit
a1ac635d96
1 changed files with 1 additions and 1 deletions
|
@ -179,7 +179,7 @@ module ActionController #:nodoc:
|
|||
end
|
||||
|
||||
def layout_list #:nodoc:
|
||||
Array(view_paths).sum([]) { |path| Dir["#{path}/layouts/**/*"] }
|
||||
Array(view_paths).sum([]) { |path| Dir["#{path.to_str}/layouts/**/*"] }
|
||||
end
|
||||
|
||||
def find_layout(layout, *formats) #:nodoc:
|
||||
|
|
Loading…
Reference in a new issue