# HG changeset patch # User Edho Arief # Date 1349297020 -25200 # Node ID 86948069ef60c4857da893a8f8479413fb9ef6f0 # Parent c09020fc73f5c64d47742eb710ba9b8fc0c22caa Enables thread safety. diff -r c09020fc73f5 -r 86948069ef60 config/application.rb --- a/config/application.rb Thu Oct 04 03:08:00 2012 +0700 +++ b/config/application.rb Thu Oct 04 03:43:40 2012 +0700 @@ -24,6 +24,10 @@ # Custom directories with classes and modules you want to be autoloadable. # config.autoload_paths += %W(#{config.root}/extras) + # Enable threaded mode except for rake tasks as it doesn't work quite well + # Reference: http://groups.google.com/group/rubyonrails-core/browse_thread/thread/b13dbe0b8f12b7dc + config.threadsafe! unless $rails_rake_task + # Only load the plugins named here, in the order given (default is alphabetical). # :all can be used as a placeholder for all plugins not explicitly named. # config.plugins = [ :exception_notification, :ssl_requirement, :all ]