Class: Jobshop::ApplicationController

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

Instance Method Summary collapse

Instance Method Details

#after_sign_in_path_for(resource_or_scope) ⇒ Object

after_action :verify_authorized, except: :index after_action :verify_policy_scoped, only: :index



19
20
21
22
23
24
25
# File 'app/controllers/jobshop/application_controller.rb', line 19

def (resource_or_scope)
  if !resource_or_scope.onboard?
    team_setup_path
  else
    super
  end
end