Sha256: f012c9dc86b057319935fc10e1f8b45b9f3b7b306b698c00c16ba01821d9c0bb

Contents?: true

Size: 488 Bytes

Versions: 2

Compression:

Stored size: 488 Bytes

Contents

require "cancancan"

module ThinkFeelDoDashboard
  # Top level engine controller
  # inherits from host application's ApplicationController.
  class ApplicationController < ::ApplicationController
    include ThinkFeelDoDashboard::Concerns::BrowserDetective

    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

2 entries across 2 versions & 1 rubygems

Version Path
think_feel_do_dashboard-1.1.11 app/controllers/think_feel_do_dashboard/application_controller.rb
think_feel_do_dashboard-1.1.10 app/controllers/think_feel_do_dashboard/application_controller.rb