Class: MailyHerald::Webui::ApplicationController
- Inherits:
-
ActionController::Base
- Object
- ActionController::Base
- MailyHerald::Webui::ApplicationController
- Defined in:
- app/controllers/maily_herald/webui/application_controller.rb
Direct Known Subclasses
DashboardController, ResourcesController, SessionsController
Instance Method Summary collapse
Methods included from MenuManager::ControllerExtensions
Methods included from Breadcrumbs::ControllerExtensions
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_mode ⇒ Object
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 |