config/initializers/load_config.rb in lines-engine-1.2.3 vs config/initializers/load_config.rb in lines-engine-1.2.5
- old
+ new
@@ -5,8 +5,9 @@
unless File.exists?(config_file)
config_file = Lines::Engine.root.join('config', 'lines_config.yml')
end
# Load the configuration
-CONFIG = YAML.load_file(config_file)
+#CONFIG = YAML.load_file(config_file)
+CONFIG = YAML.load(ERB.new(File.read(config_file)).result)
CONFIG.merge! CONFIG.fetch(Rails.env, {})
-CONFIG.symbolize_keys!
\ No newline at end of file
+CONFIG.symbolize_keys!