Sha256: 0466a00a018ab3b3024dc329a6e548033cbfba074a5db84e033d2a569a1ba2dc
Contents?: true
Size: 578 Bytes
Versions: 11
Compression:
Stored size: 578 Bytes
Contents
module Jobshop class ApplicationController < ActionController::Base include Pundit protect_from_forgery # after_action :verify_authorized, except: :index # after_action :verify_policy_scoped, :only => :index # rescue_from Jobshop::NotAuthenticatedError, with: :not_authenticated # def not_authenticated # flash[:alert] = "Please sign in." # redirect_to(request.referrer || main_app.root_path) # end def pundit_user # raise Jobshop::NoCurrentUserMethodError unless respond_to?(:current_user) # current_user end end end
Version data entries
11 entries across 11 versions & 1 rubygems