From 1bad29d78c02acf14a773bc9cb63b02f51250ae8 Mon Sep 17 00:00:00 2001 From: Cyril Rohr Date: Mon, 28 Jul 2014 12:50:40 +0000 Subject: [PATCH] Allow to load ERB variables from config file. --- lib/open_project/configuration.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/open_project/configuration.rb b/lib/open_project/configuration.rb index df61200bbb..1f7d9cb77b 100644 --- a/lib/open_project/configuration.rb +++ b/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