From 154630995df10d842c4ef8d3ce20bb7d58367fe4 Mon Sep 17 00:00:00 2001 From: Phil Ostler Date: Thu, 8 Aug 2013 23:52:40 +0100 Subject: [PATCH] Switches to using File#open when loading web locale YAMLs due to error using #read --- lib/sidekiq/web.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/sidekiq/web.rb b/lib/sidekiq/web.rb index afea9de4..5effc2b6 100644 --- a/lib/sidekiq/web.rb +++ b/lib/sidekiq/web.rb @@ -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