From 7d9fd350d3426cd7964ceea35d8c826faeeea839 Mon Sep 17 00:00:00 2001 From: Sam <sam.saffron@gmail.com> Date: Fri, 26 Apr 2013 13:58:30 +1000 Subject: [PATCH] dup is critical cause people are mucking with stuff that comes out of the cache --- lib/freedom_patches/translate_accelerator.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/freedom_patches/translate_accelerator.rb b/lib/freedom_patches/translate_accelerator.rb index 617a44996..3c1d93c26 100644 --- a/lib/freedom_patches/translate_accelerator.rb +++ b/lib/freedom_patches/translate_accelerator.rb @@ -19,7 +19,7 @@ module I18n t = @cache[k] = translate_no_cache(*args) end - t + t.dup end alias_method :t, :translate