codeforamerica/adopt-a-hydrant — pull request #16 by monfresh (2012-11-08 05:41:25+00:00)
Title: updated threaded mode to allow rake tasks

`rake db:seed` cannot run in production (Heroku in my case) if threaded mode is enabled as is. The solution is to add `unless $rails_rake_task` after `config.threadsafe!`. This will be the new default in Rails 4: https://github.com/rails/rails/issues/2662