Enable threadsafe. Preload lib/

This commit is contained in:
Dmitriy Zaporozhets 2013-06-11 18:03:13 +03:00
parent 159eee8dfd
commit 5511a731bc
2 changed files with 6 additions and 1 deletions

View File

@ -52,7 +52,7 @@ Gitlab::Application.configure do
# config.action_mailer.raise_delivery_errors = false
# Enable threaded mode
# config.threadsafe!
config.threadsafe!
# Enable locale fallbacks for I18n (makes lookups for any locale fall back to
# the I18n.default_locale when a translation can not be found)

View File

@ -6,3 +6,8 @@ module Gitlab
Settings
end
end
#
# Load all libs for threadsafety
#
Dir["#{Rails.root}/lib/**/*.rb"].each { |file| require file }