class FromHyrax::Engine
Public Class Methods
config()
click to toggle source
# File lib/from_hyrax/engine.rb, line 15 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/from_hyrax/engine.rb, line 24 def load_config(file) @config = YAML.load_file(file) end