class BaseCrmController < ActionController::Base include LoginVerification layout "CRM" #before_action :check_installation protect_from_forgery with: :exception rescue_from CanCan::AccessDenied do |exception| flash[:warning] = exception.message redirect_to root_path end end