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

Switches to using File#open when loading web locale YAMLs due to error using #read

This commit is contained in:
Phil Ostler 2013-08-08 23:52:40 +01:00
parent dd55644ab0
commit 154630995d

View file

@ -22,7 +22,7 @@ module Sidekiq
def strings def strings
@strings ||= begin @strings ||= begin
Dir["#{settings.locales}/*.yml"].inject({}) do |memo, file| Dir["#{settings.locales}/*.yml"].inject({}) do |memo, file|
memo.merge(YAML.load(File.read(file))) memo.merge(YAML.load(File.open(file)))
end end
end end
end end