This commit is contained in:
Sam 2013-04-24 12:26:39 +10:00
parent aa6485639b
commit c9ed7100b1
1 changed files with 2 additions and 1 deletions

View File

@ -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