Permalink
Browse files

make sure, already cached scope is not modified, fixes issue #160

  • Loading branch information...
1 parent 81fd445 commit 999d6732ab91b32dadbd5db592e551dd84e42d8b Friedrich Delgado committed Aug 30, 2012
Showing with 1 addition and 0 deletions.
  1. +1 −0 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

0 comments on commit 999d673

Please sign in to comment.