updated threaded mode to allow rake tasks

This commit is contained in:
Moncef Belyamani 2012-11-08 00:33:54 -05:00
parent 0f0ae8ceaf
commit 01bbf63ed6
1 changed files with 1 additions and 1 deletions

View File

@ -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)