Sha256: bf52cdf3319c2f1c0136e1058aad393ce778ec31491453bd5724a7d2dde570d3
Contents?: true
Size: 554 Bytes
Versions: 3
Compression:
Stored size: 554 Bytes
Contents
module Jobshop class ApplicationController < ActionController::Base include Pundit layout :layout_for_application protect_from_forgery before_action :authenticate_user! # after_action :verify_authorized, except: :index # after_action :verify_policy_scoped, :only => :index def layout_for_application if devise_controller? && controller_name == "sessions" || controller_path == "jobshop/teams/lookups" "jobshop/unauthenticated" else "jobshop/application" end end end end
Version data entries
3 entries across 3 versions & 1 rubygems