From c9ed7100b113a8c3c77566f0972f816172efcb81 Mon Sep 17 00:00:00 2001 From: Sam Date: Wed, 24 Apr 2013 12:26:39 +1000 Subject: [PATCH] bug fix --- lib/freedom_patches/inflector_backport.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/freedom_patches/inflector_backport.rb b/lib/freedom_patches/inflector_backport.rb index ff2f63fe44d..299ee1107c7 100644 --- a/lib/freedom_patches/inflector_backport.rb +++ b/lib/freedom_patches/inflector_backport.rb @@ -27,7 +27,8 @@ module ActiveSupport unless found cache[args] = data = send(uncached, *args) end - data + # so cache is never corrupted + data.dup end end end