1
0
Fork 0
mirror of https://github.com/mperham/sidekiq.git synced 2022-11-09 13:52:34 -05:00

Don't forget poor little freeze\!

This commit is contained in:
Mike Perham 2015-05-15 12:11:01 -07:00
parent 5e1379087c
commit a3c53211be

View file

@ -65,7 +65,7 @@ module Sidekiq
locale = 'en'.freeze
languages = request.env['HTTP_ACCEPT_LANGUAGE'.freeze] || 'en'.freeze
languages.downcase.split(','.freeze).each do |lang|
next if lang == '*'
next if lang == '*'.freeze
lang = lang.split(';'.freeze)[0]
break locale = lang if find_locale_files(lang).any?
end