1
0
Fork 0
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:
Joshua Peek 2009-01-27 11:08:29 -06:00
parent 5fe6635e05
commit a1ac635d96

View file

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