Class: ToSpotlight::Engine
- Inherits:
-
Rails::Engine
- Object
- Rails::Engine
- ToSpotlight::Engine
- Defined in:
- lib/to_spotlight/engine.rb
Class Method Summary collapse
- .config ⇒ Object
-
.load_config(file) ⇒ Object
loads a yml file with the configuration options.
Class Method Details
.config ⇒ Object
14 15 16 17 |
# File 'lib/to_spotlight/engine.rb', line 14 def config file = File.open(File.join(::Rails.root, '/config/from_hyrax.yml')) @config ||= YAML.safe_load(file) end |
.load_config(file) ⇒ Object
loads a yml file with the configuration options
23 24 25 |
# File 'lib/to_spotlight/engine.rb', line 23 def load_config(file) @config = YAML.load_file(file) end |