lib/hydra-access-controls.rb in hydra-access-controls-11.0.0.rc1 vs lib/hydra-access-controls.rb in hydra-access-controls-11.0.0.rc2
- old
+ new
@@ -27,19 +27,22 @@
@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
+ class Engine < Rails::Engine; 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'
+
+# While we support ActiveFedora 10 and 11, alias ActiveFedora::Indexing and
+# ActiveFedora::Indexing::Inserter to Solrizer
+require 'active_fedora/version'
+if ActiveFedora.version.split('.').first.to_i < 12
+ ActiveFedora::Indexing::Inserter = Solrizer
+ ActiveFedora::Indexing::Descriptor = Solrizer::Descriptor
+end