Monthly Archives: November 2009

Getting Threads in Rails

So you want threads in rails? Add the following 2 lines to your production.rb file:

config.threadsafe!
config.eager_load_paths << “#{RAILS_ROOT}/lib”

For more reading, checkout: http://m.onkey.org/2008/10/23/thread-safety-for-your-rails