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

Version Path
think_feel_do_dashboard-1.2.0.beta1 app/controllers/think_feel_do_dashboard/application_controller.rb
think_feel_do_dashboard-1.1.21 app/controllers/think_feel_do_dashboard/application_controller.rb
think_feel_do_dashboard-1.1.20 app/controllers/think_feel_do_dashboard/application_controller.rb
think_feel_do_dashboard-1.1.19 app/controllers/think_feel_do_dashboard/application_controller.rb
think_feel_do_dashboard-1.1.18 app/controllers/think_feel_do_dashboard/application_controller.rb
think_feel_do_dashboard-1.1.17 app/controllers/think_feel_do_dashboard/application_controller.rb
think_feel_do_dashboard-1.1.16 app/controllers/think_feel_do_dashboard/application_controller.rb
think_feel_do_dashboard-1.1.15 app/controllers/think_feel_do_dashboard/application_controller.rb
think_feel_do_dashboard-1.1.14 app/controllers/think_feel_do_dashboard/application_controller.rb
think_feel_do_dashboard-1.1.13 app/controllers/think_feel_do_dashboard/application_controller.rb
think_feel_do_dashboard-1.1.12 app/controllers/think_feel_do_dashboard/application_controller.rb