From 01bbf63ed6c048002dfa5c675f2b0cbe82e0a5d1 Mon Sep 17 00:00:00 2001 From: Moncef Belyamani Date: Thu, 8 Nov 2012 00:33:54 -0500 Subject: [PATCH] updated threaded mode to allow rake tasks --- 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 5450335..10d8ad7 100644 --- a/config/environments/production.rb +++ b/config/environments/production.rb @@ -53,7 +53,7 @@ AdoptAThing::Application.configure do config.action_mailer.default_url_options = {:host => 'adoptahydrant.org'} # Enable threaded mode - config.threadsafe! + config.threadsafe! unless $rails_rake_task # Enable locale fallbacks for I18n (makes lookups for any locale fall back to # the I18n.default_locale when a translation can not be found)