Sha256: 90ff9814633c3d19cf8a8fd6eb37ecfcfa6f746f20b8e4a28d6659b0ade10953

Contents?: true

Size: 389 Bytes

Versions: 8

Compression:

Stored size: 389 Bytes

Contents

# frozen_string_literal: true

module Archangel
  ##
  # Backend base controller
  #
  class BackendController < ApplicationController
    include Pundit

    include Archangel::AuthenticatableConcern
    include Archangel::AuthorizableConcern

    rescue_from Pundit::NotAuthorizedError, with: :render_401_error

    protected

    def layout_from_theme
      "backend"
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
archangel-0.3.0 app/controllers/archangel/backend_controller.rb
archangel-0.0.8 app/controllers/archangel/backend_controller.rb
archangel-0.0.7 app/controllers/archangel/backend_controller.rb
archangel-0.0.6 app/controllers/archangel/backend_controller.rb
archangel-0.0.5 app/controllers/archangel/backend_controller.rb
archangel-0.0.4 app/controllers/archangel/backend_controller.rb
archangel-0.0.3 app/controllers/archangel/backend_controller.rb
archangel-0.0.2 app/controllers/archangel/backend_controller.rb