Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge pull request #161 from TauPan/fix-cascade-memory-leak

make sure, already cached scope is not modified, fixes issue #160
  • Loading branch information...
commit 79a4258c275125906d70d1ee3a2a3f11d2361e64 2 parents 81fd445 + 999d673
@svenfuchs authored
Showing with 1 addition and 0 deletions.
  1. +1 −0  lib/i18n/backend/cascade.rb
View
1  lib/i18n/backend/cascade.rb
@@ -46,6 +46,7 @@ def lookup(locale, key, scope = [], options = {})
begin
result = super
return result unless result.nil?
+ scope = scope.dup
end while (!scope.empty? || !skip_root) && scope.slice!(-step, step)
end
end
Please sign in to comment.
Something went wrong with that request. Please try again.