Method: MDWA::Layout::Base.select_layout
- Defined in:
- lib/mdwa/layout/base.rb
.select_layout(route) ⇒ Object
returns the corresponding layout of the current route
30 31 32 33 34 35 36 |
# File 'lib/mdwa/layout/base.rb', line 30 def select_layout(route) # if route is namespaced, corrects the request if !route.rindex('/').nil? and route[0] != '/' route = "/#{route}" end return layout(route) end |