From 5a0f948a85d418e6e4f4c9dd2a9596f91a8b67f9 Mon Sep 17 00:00:00 2001 From: Maxwell Salzberg Date: Thu, 5 Jan 2012 00:02:59 -0800 Subject: [PATCH] better file requires in production.rb --- config/environments/production.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/environments/production.rb b/config/environments/production.rb index 3e62c19a6..69bed0eda 100644 --- a/config/environments/production.rb +++ b/config/environments/production.rb @@ -49,7 +49,7 @@ Diaspora::Application.configure do config.threadsafe! - require Rails.root + 'app/models/app_config' + require File.join(Rails.root, 'app/models/app_config') if AppConfig[:google_a_site].present? config.gem 'rack-google-analytics', :lib => 'rack/google-analytics'