Sha256: 79b20293709735f2366af3cf6b235a6c850e3272a20b5e4af890623f2cbe9888
Contents?: true
Size: 1.11 KB
Versions: 2
Compression:
Stored size: 1.11 KB
Contents
require 'rails' require 'active-fedora' require 'blacklight' require 'cancan' module Hydra extend ActiveSupport::Autoload autoload :AccessControls autoload :User autoload :AccessControlsEnforcement autoload :PolicyAwareAccessControlsEnforcement autoload :AccessControlsEvaluation autoload :Ability autoload :Config autoload :Datastream autoload :PolicyAwareAbility autoload :AdminPolicy autoload :RoleMapperBehavior autoload :PermissionsQuery autoload :PermissionsCache autoload :PermissionsSolrDocument class << self def configure(_ = nil) @config ||= Config.new yield @config if block_given? @config end alias :config :configure end class Engine < Rails::Engine # autoload_paths is only necessary for Rails 3 config.autoload_paths += %W( #{config.root}/app/models/concerns ) end # This error is raised when a user isn't allowed to access a given controller action. # This usually happens within a call to AccessControlsEnforcement#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 |
---|---|
hydra-access-controls-7.0.0.pre2 | lib/hydra-access-controls.rb |
hydra-access-controls-7.0.0.pre1 | lib/hydra-access-controls.rb |