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:
parent
dd55644ab0
commit
154630995d
1 changed files with 1 additions and 1 deletions
|
@ -22,7 +22,7 @@ module Sidekiq
|
|||
def strings
|
||||
@strings ||= begin
|
||||
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
|
||||
|
|
Loading…
Reference in a new issue