Class: Jobshop::ApplicationController
- Inherits:
-
ActionController::Base
- Object
- ActionController::Base
- Jobshop::ApplicationController
- Includes:
- Pundit
- Defined in:
- app/controllers/jobshop/application_controller.rb
Direct Known Subclasses
Instance Method Summary collapse
-
#layout_for_application ⇒ Object
after_action :verify_authorized, except: :index after_action :verify_policy_scoped, :only => :index.
Instance Method Details
#layout_for_application ⇒ Object
after_action :verify_authorized, except: :index
after_action :verify_policy_scoped, :only => :index
14 15 16 17 18 19 20 21 22 |
# File 'app/controllers/jobshop/application_controller.rb', line 14 def layout_for_application if devise_controller? && controller_name == "sessions" || controller_path == "jobshop/teams/lookups" "jobshop/unauthenticated" else "jobshop/application" end end |