lib/amee/config.rb in amee-4.1.6 vs lib/amee/config.rb in amee-4.1.7
- old
+ new
@@ -1,8 +1,10 @@
# Copyright (C) 2008-2011 AMEE UK Ltd. - http://www.amee.com
# Released as Open Source Software under the BSD 3-Clause license. See LICENSE.txt for details.
+require 'yaml'
+
module AMEE
class Config
@@ -15,10 +17,10 @@
# first try loading the yaml file
yaml_config = YAML.load_file(amee_config_file)
config = yaml_config[environment]
# make config[:username] possible instead of just config['username']
- config.recursive_symbolize_keys!
+ config = config.recursive_symbolize_keys
else
config = {}
end
# then either override, or load in config deets from heroku