From 0d0545fa101b8709f54b7ea570b31892ee046ca2 Mon Sep 17 00:00:00 2001 From: Gavin Dunne Date: Tue, 13 May 2014 12:44:40 -0700 Subject: fix redmine config loader to parse ERB --- lib/redmine/configuration.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/redmine/configuration.rb b/lib/redmine/configuration.rb index 09df60d..051ed77 100644 --- a/lib/redmine/configuration.rb +++ b/lib/redmine/configuration.rb @@ -82,7 +82,7 @@ module Redmine def load_from_yaml(filename, env) yaml = nil begin - yaml = YAML::load_file(filename) + yaml = YAML::load(ERB.new(File.read(filename)).result) rescue ArgumentError $stderr.puts "Your Redmine configuration file located at #{filename} is not a valid YAML file and could not be loaded." exit 1 -- 1.8.5.2 (Apple Git-48)