Open MartinNowak opened 9 years ago
I think this was added to fix another issue, see https://github.com/mongoid/origin/commit/701a8f777c6e9c6d8ca14657e07a6128407ef828
So when you have "2."
it would convert to 2... but 2.0
should be a Float IMO.
@MartinNowak want try to fix this and send a PR? thanks
Sure will do.
[30.0, 27.2, -2.0].mongoize
returns[30, 27.2, -2.0]
and[30.0, 27.2, -2.0].mongoize.map{|e| e.class}
returns[Fixnum, Float, Fixnum]