Project

General

Profile

Patch #16878 ยป erb_config.diff

Gavin Dunne, 2014-05-13 21:58

View differences:

lib/redmine/configuration.rb
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-1/1)