lib/mashed/stringy_hash.rb in mashed-1.0.1 vs lib/mashed/stringy_hash.rb in mashed-1.0.2
- old
+ new
@@ -34,21 +34,21 @@
def delete(key, &blk)
super(key.to_s, &blk)
end
def merge(other_hash, &blk)
- super(other_hash.stringify, &blk)
+ super(self.class.stringify(other_hash), &blk)
end
def merge!(other_hash, &blk)
- super(other_hash.stringify, &blk)
+ super(self.class.stringify(other_hash), &blk)
end
def replace(other_hash, &blk)
- super(other_hash.stringify, &blk)
+ super(self.class.stringify(other_hash), &blk)
end
def update(other_hash, &blk)
- super(other_hash.stringify, &blk)
+ super(self.class.stringify(other_hash), &blk)
end
end
end