Mercurial > zeropaste
comparison config/application.rb @ 50:86948069ef60
Enables thread safety.
author | Edho Arief <edho@myconan.net> |
---|---|
date | Thu, 04 Oct 2012 03:43:40 +0700 |
parents | 4aa8194a1733 |
children | e8920b00035c |
comparison
equal
deleted
inserted
replaced
49:c09020fc73f5 | 50:86948069ef60 |
---|---|
21 # Application configuration should go into files in config/initializers | 21 # Application configuration should go into files in config/initializers |
22 # -- all .rb files in that directory are automatically loaded. | 22 # -- all .rb files in that directory are automatically loaded. |
23 | 23 |
24 # Custom directories with classes and modules you want to be autoloadable. | 24 # Custom directories with classes and modules you want to be autoloadable. |
25 # config.autoload_paths += %W(#{config.root}/extras) | 25 # config.autoload_paths += %W(#{config.root}/extras) |
26 | |
27 # Enable threaded mode except for rake tasks as it doesn't work quite well | |
28 # Reference: http://groups.google.com/group/rubyonrails-core/browse_thread/thread/b13dbe0b8f12b7dc | |
29 config.threadsafe! unless $rails_rake_task | |
26 | 30 |
27 # Only load the plugins named here, in the order given (default is alphabetical). | 31 # Only load the plugins named here, in the order given (default is alphabetical). |
28 # :all can be used as a placeholder for all plugins not explicitly named. | 32 # :all can be used as a placeholder for all plugins not explicitly named. |
29 # config.plugins = [ :exception_notification, :ssl_requirement, :all ] | 33 # config.plugins = [ :exception_notification, :ssl_requirement, :all ] |
30 | 34 |