Use modern config namespace

This commit is contained in:
Dan Rice 2014-09-12 21:43:39 -04:00
parent ccf0b45f27
commit c88b1d463f
3 changed files with 4 additions and 4 deletions

View file

@ -2,6 +2,6 @@
require ::File.expand_path('../config/environment', __FILE__) require ::File.expand_path('../config/environment', __FILE__)
map Tracksapp::Application.config.relative_url_root || "/" do map Rails.application.config.relative_url_root || "/" do
run Rails.application run Rails.application
end end

View file

@ -1,4 +1,4 @@
Tracksapp::Application.configure do Rails.application.configure do
# Settings specified here will take precedence over those in config/application.rb # Settings specified here will take precedence over those in config/application.rb
# The test environment is used exclusively to run your application's # The test environment is used exclusively to run your application's
@ -41,4 +41,4 @@ Tracksapp::Application.configure do
SITE_CONFIG['salt'] ||= 'change-me' SITE_CONFIG['salt'] ||= 'change-me'
config.time_zone = 'UTC' config.time_zone = 'UTC'
end end

View file

@ -9,4 +9,4 @@
# Make sure your secret_key_base is kept private # Make sure your secret_key_base is kept private
# if you're sharing your code publicly. # if you're sharing your code publicly.
Tracksapp::Application.config.secret_key_base = SITE_CONFIG["secret_token"] || SecureRandom.hex(64) Rails.application.config.secret_key_base = SITE_CONFIG["secret_token"] || SecureRandom.hex(64)