class ToSpotlight::Engine

Public Class Methods

config() click to toggle source
# 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) click to toggle source

loads a yml file with the configuration options

@param file [String] path to the yml file

# File lib/to_spotlight/engine.rb, line 23
def load_config(file)
  @config = YAML.load_file(file)
end