/config/environments/development.rb
/config/environments/test.rb
/config/environments/production.rb
-/config/config.yml
+/config/application.yml
/config/piwik.yml
# Do not use this file for site configuration. Create config.yml
-# instead (see config.yml.example).
+# instead (see application.yml.example).
development:
cache_classes: false
-# Copy this file to config.yml and edit to suit.
+# Copy this file to application.yml and edit to suit.
#
-# Consult config.defaults.yml for the full list of configuration
+# Consult application.default.yml for the full list of configuration
# settings.
#
# The order of precedence is:
# 1. config/environments/{RAILS_ENV}.rb (deprecated)
-# 2. Section in config.yml corresponding to RAILS_ENV (e.g., development)
-# 3. Section in config.yml called "common"
-# 4. Section in config.defaults.yml corresponding to RAILS_ENV
-# 5. Section in config.defaults.yml called "common"
+# 2. Section in application.yml corresponding to RAILS_ENV (e.g., development)
+# 3. Section in application.yml called "common"
+# 4. Section in application.default.yml corresponding to RAILS_ENV
+# 5. Section in application.default.yml called "common"
common:
# At minimum, you need a nice long randomly generated secret_token here.
$application_config = {}
-%w(config.defaults config).each do |cfgfile|
+
+%w(application.default application).each do |cfgfile|
path = "#{::Rails.root.to_s}/config/#{cfgfile}.yml"
if File.exists? path
yaml = ERB.new(IO.read path).result(binding)
raise <<EOS
Refusing to start in #{::Rails.env.to_s} mode with missing configuration.
-The following configuration settings must be specified in config/config.yml:
+The following configuration settings must be specified in
+config/application.yml:
* #{nils.join "\n* "}
EOS
/config/api.clinicalfuture.com.*
/config/database.yml
/config/initializers/omniauth.rb
-/config/config.yml
+/config/application.yml
# asset cache
/public/assets/
-# Do not use this file for site configuration. Create config.yml
-# instead (see config.yml.example).
+# Do not use this file for site configuration. Create application.yml
+# instead (see application.yml.example).
development:
force_ssl: false
-# Copy this file to config.yml and edit to suit.
+# Copy this file to application.yml and edit to suit.
#
-# Consult config.defaults.yml for the full list of configuration
+# Consult application.default.yml for the full list of configuration
# settings.
#
# The order of precedence is:
# 1. config/environments/{RAILS_ENV}.rb (deprecated)
-# 2. Section in config.yml corresponding to RAILS_ENV (e.g., development)
-# 3. Section in config.yml called "common"
-# 4. Section in config.defaults.yml corresponding to RAILS_ENV
-# 5. Section in config.defaults.yml called "common"
+# 2. Section in application.yml corresponding to RAILS_ENV (e.g., development)
+# 3. Section in application.yml called "common"
+# 4. Section in application.default.yml corresponding to RAILS_ENV
+# 5. Section in application.default.yml called "common"
development:
$application_config = {}
-%w(config.defaults config).each do |cfgfile|
+%w(application.default application).each do |cfgfile|
path = "#{::Rails.root.to_s}/config/#{cfgfile}.yml"
if File.exists? path
yaml = ERB.new(IO.read path).result(binding)
raise <<EOS
Refusing to start in #{::Rails.env.to_s} mode with missing configuration.
-The following configuration settings must be specified in config/config.yml:
+The following configuration settings must be specified in
+config/application.yml:
* #{nils.join "\n* "}
EOS