Sha256: 3e3e69676233ccb7244e81e749fc6c2175f5178786b78f92c646c839e4afdc11

Contents?: true

Size: 599 Bytes

Versions: 5

Compression:

Stored size: 599 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-6.0.1 lib/blacklight-access_controls.rb
blacklight-access_controls-6.0.0 lib/blacklight-access_controls.rb
blacklight-access_controls-0.7.0 lib/blacklight-access_controls.rb
blacklight-access_controls-0.7.0.rc1 lib/blacklight-access_controls.rb
blacklight-access_controls-0.6.2 lib/blacklight-access_controls.rb