Class: Spotlight::Engine

Inherits:
Rails::Engine
  • Object
show all
Defined in:
lib/spotlight/engine.rb

Overview

Spotlight::Engine rubocop:disable Metrics/ClassLength

Defined Under Namespace

Classes: TranslationYamlHandler

Constant Summary collapse

PRECOMPILE_ASSETS =
%w[
  spotlight/blocks/sir-trevor-icons.svg
  spotlight/default_thumbnail.jpg
  spotlight/default_browse_thumbnail.jpg
  spotlight/spotlight.js
  spotlight/spotlight.js.map
  spotlight/spotlight.esm.js
  spotlight/spotlight.esm.js.map
].freeze

Class Method Summary collapse

Class Method Details

.blacklight_configObject



84
85
86
# File 'lib/spotlight/engine.rb', line 84

def self.blacklight_config
  Spotlight::Engine.config.default_blacklight_config || catalog_controller.blacklight_config
end

.catalog_controllerObject



80
81
82
# File 'lib/spotlight/engine.rb', line 80

def self.catalog_controller
  Spotlight::Engine.config.catalog_controller_class.constantize
end

.user_classObject



76
77
78
# File 'lib/spotlight/engine.rb', line 76

def self.user_class
  Spotlight::Engine.config.user_class.constantize
end