Skip to content

Commit

Permalink
Rebuild the identity map on #replace
Browse files Browse the repository at this point in the history
  • Loading branch information
Evan Phoenix committed Sep 22, 2010
1 parent 8ae7ab2 commit 3221211
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions kernel/common/loadedfeatures.rb
Expand Up @@ -50,5 +50,11 @@ def unshift(*values)
identity_map
self
end

def replace(other)
super
identity_map
self
end
end
end

0 comments on commit 3221211

Please sign in to comment.