lib/spotlight/engine.rb in blacklight-spotlight-0.12.0 vs lib/spotlight/engine.rb in blacklight-spotlight-0.12.1

- old
+ new

@@ -45,16 +45,22 @@ initializer 'spotlight.factories', after: 'factory_girl.set_factory_paths' do FactoryGirl.definition_file_paths << File.expand_path('../../../spec/factories', __FILE__) if defined?(FactoryGirl) end + def self.user_class + Spotlight::Engine.config.user_class.constantize + end + def self.catalog_controller Spotlight::Engine.config.catalog_controller_class.constantize end def self.blacklight_config Spotlight::Engine.config.default_blacklight_config || catalog_controller.blacklight_config end + + Spotlight::Engine.config.user_class = '::User' Spotlight::Engine.config.catalog_controller_class = '::CatalogController' Spotlight::Engine.config.default_blacklight_config = nil Spotlight::Engine.config.exhibit_main_navigation = [:curated_features, :browse, :about]