2 %w(config.defaults config).each do |cfgfile|
3 path = "#{::Rails.root.to_s}/config/#{cfgfile}.yml"
5 yaml = ERB.new(IO.read path).result(binding)
6 confs = YAML.load(yaml)
7 conf.merge!(confs['common'] || {})
8 conf.merge!(confs[::Rails.env.to_s] || {})
12 Server::Application.configure do
15 # "foo.bar: baz" --> { config.foo.bar = baz }
22 if cfg.respond_to?(k.to_sym) and !cfg.send(k).nil?
23 # Config must have been set already in environments/*.rb.
25 # After config files have been migrated, this mechanism should
26 # be deprecated, then removed.
28 # Config variables are not allowed to be nil. Make a "naughty"
29 # list, and present it below.
37 Refusing to start in #{::Rails.env.to_s} mode with missing configuration.
39 The following configuration settings must be specified in config/config.yml: