Module: CurationConcerns::ThemedLayoutController::ClassMethods

Defined in:
app/controllers/concerns/curation_concerns/themed_layout_controller.rb

Instance Method Summary collapse

Instance Method Details

#with_themed_layout(view_name = nil) ⇒ Object



14
15
16
17
18
19
20
# File 'app/controllers/concerns/curation_concerns/themed_layout_controller.rb', line 14

def with_themed_layout(view_name = nil)
  if view_name
    layout("#{theme}/#{view_name}")
  else
    layout(theme)
  end
end