Allow to load ERB variables from config file.

pull/1775/head
Cyril Rohr 10 years ago committed by kgalli
parent 56959872b5
commit 1bad29d78c
  1. 2
      lib/open_project/configuration.rb

@ -144,7 +144,7 @@ module OpenProject
def load_config_from_file(filename, env, config)
if File.file?(filename)
file_config = YAML::load_file(filename)
file_config = YAML::load(ERB.new(File.read(filename)).result)
unless file_config.kind_of? Hash
warn "#{filename} is not a valid OpenProject configuration file, ignoring."
else

Loading…
Cancel
Save