Class: MailyHerald::Webui::ApplicationController

Inherits:
ActionController::Base
  • Object
show all
Includes:
Breadcrumbs::ControllerExtensions, MenuManager::ControllerExtensions
Defined in:
app/controllers/maily_herald/webui/application_controller.rb

Instance Method Summary collapse

Methods included from MenuManager::ControllerExtensions

included

Methods included from Breadcrumbs::ControllerExtensions

included

Instance Method Details

#expert_mode?Boolean



14
15
16
# File 'app/controllers/maily_herald/webui/application_controller.rb', line 14

def expert_mode?
  work_mode == :expert
end

#work_modeObject



10
11
12
# File 'app/controllers/maily_herald/webui/application_controller.rb', line 10

def work_mode
  session[:work_mode].try(:to_sym) || :regular
end