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