diff --git a/config.ru b/config.ru index f76cb138..f54d4090 100644 --- a/config.ru +++ b/config.ru @@ -2,6 +2,6 @@ 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 end diff --git a/config/environments/cucumber.rb b/config/environments/cucumber.rb index 329c3624..ec6b6e4c 100644 --- a/config/environments/cucumber.rb +++ b/config/environments/cucumber.rb @@ -1,4 +1,4 @@ -Tracksapp::Application.configure do +Rails.application.configure do # Settings specified here will take precedence over those in config/application.rb # The test environment is used exclusively to run your application's @@ -41,4 +41,4 @@ Tracksapp::Application.configure do SITE_CONFIG['salt'] ||= 'change-me' config.time_zone = 'UTC' -end \ No newline at end of file +end diff --git a/config/initializers/secret_token.rb b/config/initializers/secret_token.rb index 4eb5710d..856a37a6 100644 --- a/config/initializers/secret_token.rb +++ b/config/initializers/secret_token.rb @@ -9,4 +9,4 @@ # Make sure your secret_key_base is kept private # 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)