Sha256: 57b9b49f29c48c0f34d2dd25d34361f954af0df8f8f4a04923cb2335d4cc64bd
Contents?: true
Size: 598 Bytes
Versions: 2
Compression:
Stored size: 598 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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
blacklight-access_controls-0.6.1 | lib/blacklight-access_controls.rb |
blacklight-access_controls-0.6.0 | lib/blacklight-access_controls.rb |