Sha256: 94c5d840dc5c30bbe108d3d23540c593dd93559c9c10974e8c15164895d67552
Contents?: true
Size: 505 Bytes
Versions: 11
Compression:
Stored size: 505 Bytes
Contents
require "cancancan" module ThinkFeelDoDashboard # Top level engine controller # inherits from host application's ApplicationController. class ApplicationController < ::ApplicationController include Concerns::BrowserDetective include Concerns::InvalidAuthToken before_action :authenticate_user!, :detect_browser check_authorization layout "application" rescue_from CanCan::AccessDenied do |exception| redirect_to root_url, alert: exception.message end end end
Version data entries
11 entries across 11 versions & 1 rubygems