Sha256: a66d144b4e15ec4e94d03b107c63a48fd3a9bd7b58fd6886f6e07cb3cc222edd

Contents?: true

Size: 601 Bytes

Versions: 5

Compression:

Stored size: 601 Bytes

Contents

# frozen_string_literal: true
require 'rails'
require 'cancan'
require 'blacklight'
require 'blacklight/access_controls'

module Blacklight::AccessControls
  extend ActiveSupport::Autoload

  class << self
    def configure
      @config ||= Config.new
      yield @config if block_given?
      @config
    end
    alias :config :configure
  end

  # This error is raised when a user isn't allowed to access a given controller action.
  # This usually happens within a call to Enforcement#enforce_access_controls but can be
  # raised manually.
  class AccessDenied < ::CanCan::AccessDenied; end

end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
blacklight-access_controls-0.5.1 lib/blacklight-access_controls.rb
blacklight-access_controls-0.5.0 lib/blacklight-access_controls.rb
blacklight-access_controls-0.4.1 lib/blacklight-access_controls.rb
blacklight-access_controls-0.4.0 lib/blacklight-access_controls.rb
blacklight-access_controls-0.3.0 lib/blacklight-access_controls.rb