Sha256: 81f4ec26204bceb1a70a230c1bfc41a31151ed057510b7911e373f00b9e375db
Contents?: true
Size: 1.14 KB
Versions: 17
Compression:
Stored size: 1.14 KB
Contents
require 'rails' require 'active-fedora' require 'blacklight' require 'cancan' require "deprecation" module Hydra extend ActiveSupport::Autoload autoload :AccessControls autoload :User autoload :AccessControlsEnforcement autoload :PolicyAwareAccessControlsEnforcement autoload :Ability autoload :Config autoload :PolicyAwareAbility autoload :AdminPolicy autoload :AdminPolicyBehavior 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 require 'active_fedora/accessible_by'
Version data entries
17 entries across 17 versions & 1 rubygems