Class: Jobshop::ApplicationController

Inherits:
ActionController::Base
  • Object
show all
Includes:
Pundit
Defined in:
app/controllers/jobshop/application_controller.rb

Direct Known Subclasses

DashboardsController, TeamsController

Instance Method Summary collapse

Instance Method Details

#layout_for_applicationObject

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