Sha256: 1a9c9d8d8814b433606f8fdc68d9aae574d6b67c3363fbabf9577daf4acb4b89

Contents?: true

Size: 570 Bytes

Versions: 1

Compression:

Stored size: 570 Bytes

Contents

# frozen_string_literal: true

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

    include Archangel::Controllers::AuthenticatableConcern
    include Archangel::Controllers::AuthorizableConcern
    include Archangel::Controllers::MetatagableConcern
    include Archangel::Helpers::ActionableConcern

    rescue_from Pundit::NotAuthorizedError, with: :render_401_error

    protected

    def default_meta_tags
      super.merge(noindex: true, nofollow: true, noarchive: true)
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
archangel-0.4.0 app/controllers/archangel/backend_controller.rb