Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Don't try to dup true/false/nil

  • Loading branch information...
commit 06db599985c6a5877fe33508623aa046515523a4 1 parent 7f49cb1
Greg Brockman authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/embedded-mongo/util.rb
2  lib/embedded-mongo/util.rb
View
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.