lib/app/app/config.rb in radiospiel-app-0.2.0 vs lib/app/app/config.rb in radiospiel-app-0.2.1
- old
+ new
@@ -10,10 +10,11 @@
end
def self.read(path)
return unless File.exist?(path)
App.logger.info "Reading configuration from #{path}"
- yaml = File.read(path)
+ erb = File.read(path)
+ yaml = ERB.new(erb).result(binding)
YAML.load(yaml) || {}
end
def self.load
config = paths.inject(nil) do |c, path|