Sha256: 1b634295bdf0ae00cb0f10282a6e918ffc59e43196fba7c8f22228ba147a5756
Contents?: true
Size: 670 Bytes
Versions: 4
Compression:
Stored size: 670 Bytes
Contents
module Jobshop class ApplicationController < ActionController::Base include Pundit layout :layout_for_application 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 layout_for_application if devise_controller? && controller_name == "sessions" "jobshop/unauthenticated" else "jobshop/application" end end end end
Version data entries
4 entries across 4 versions & 1 rubygems