Module: Curate::ThemedLayoutController::ClassMethods
- Defined in:
- app/controllers/concerns/curate/themed_layout_controller.rb
Instance Method Summary collapse
Instance Method Details
#with_themed_layout(view_name = nil) ⇒ Object
13 14 15 16 17 18 19 |
# File 'app/controllers/concerns/curate/themed_layout_controller.rb', line 13 def with_themed_layout(view_name = nil) if view_name layout("#{theme}/#{view_name}") else layout(theme) end end |