-
Type: Improvement
-
Resolution: Duplicate
-
Priority: Unknown
-
None
-
Affects Version/s: None
-
Component/s: None
-
None
Float/Integer demongoization of non-empty string returns zero, should be nil.
BigDecimal handles this case correctly.
Integer.demongoize("") #=> nil Float.demongoize("") #=> nil BigDecimal.demongoize("") #=> nil Integer.demongoize("Foobar") #=> 0 Float.demongoize("Foobar") #=> 0 BigDecimal.demongoize("Foobar") #=> nil
- duplicates
-
MONGOID-5222 Always mongoize uncastable values to nil
- Closed
-
MONGOID-5221 Always demongoize uncastable values to nil
- Closed