diff --git a/kernel/common/loadedfeatures.rb b/kernel/common/loadedfeatures.rb index 9f40862a2e..474df10fe3 100644 --- a/kernel/common/loadedfeatures.rb +++ b/kernel/common/loadedfeatures.rb @@ -50,5 +50,11 @@ def unshift(*values) identity_map self end + + def replace(other) + super + identity_map + self + end end end