Browse files

Don't try to dup true/false/nil

  • Loading branch information...
1 parent 7f49cb1 commit 06db599985c6a5877fe33508623aa046515523a4 @gdb committed Dec 8, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/embedded-mongo/util.rb
View
2 lib/embedded-mongo/util.rb
@@ -13,7 +13,7 @@ def self.deep_clone(obj)
clone
when Array
obj.map { |v| deep_clone(v) }
- when Numeric
+ when Numeric, true, false, nil
obj
else
obj.dup

0 comments on commit 06db599

Please sign in to comment.