Sha256: 7e7a5de3646efa43c1551b7c80d19952591e4f6ad1f14e36867dd3faf4cb708e
Contents?: true
Size: 1.33 KB
Versions: 2
Compression:
Stored size: 1.33 KB
Contents
require "blacklight" require 'active-fedora' require 'cancan' require 'hydra-access-controls' # Hydra libraries module Hydra extend ActiveSupport::Autoload autoload :GlobalConfigurable extend GlobalConfigurable autoload :Assets autoload :Catalog autoload :Controller autoload :FileAssets autoload :GenericContent autoload :GenericImage autoload :GenericUserAttributes require 'hydra/model_mixins' autoload :RepositoryController autoload :SubmissionWorkflow autoload :SuperuserAttributes autoload :User autoload :UI autoload :Solr autoload :Workflow autoload :FileAssetsHelper # 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 Hydra::AccessDenied < CanCan::AccessDenied; end User.send(:include, Hydra::SuperuserAttributes) #Deprecated end require 'hydra/assets_controller_helper' require 'hydra/rights_metadata' require 'hydra/mods' require 'hydra/model_methods' require 'hydra/models/file_asset' require 'mediashelf/active_fedora_helper' #deprecated ActiveSupport.on_load(:after_initialize) do begin SolrDocument.use_extension Hydra::ModelMixins::SolrDocumentExtension rescue NameError puts "Couldn't find SolrDocument" end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
hydra-head-4.1.3 | lib/hydra.rb |
hydra-head-4.1.2 | lib/hydra.rb |