module ActionController #:nodoc: module Layout #:nodoc: module ClassMethods #:nodoc: private def layout_list_with_plugin_routing plugin_layouts = Desert::Manager.layout_paths.join(",") plugin_layouts.empty? ? layout_list_without_plugin_routing : layout_list_without_plugin_routing + Dir["{#{plugin_layouts}}/**/*"] end alias_method_chain :layout_list, :plugin_routing end end end