lib/rails/service/app_config.rb in rails-service-0.1.0 vs lib/rails/service/app_config.rb in rails-service-0.2.0

- old
+ new

@@ -11,10 +11,9 @@ def new(options = {}) path = options.fetch(:path) logger = options.fetch(:logger) env = options.fetch(:env) - path = Rails.root.join(path) if File.exist?(path) file = File.read(path) logger.info("loading app config file: #{path}") DeepStruct.new(YAML.load(ERB.new(file).result)[env.to_s]) else