-
Type:
Bug
-
Resolution: Duplicate
-
Priority:
Major - P3
-
Affects Version/s: None
-
Component/s: None
-
None
-
None
-
None
-
None
-
None
-
None
-
None
-
None
The https://github.com/mongoid/mongoid/blob/master/lib/mongoid/extensions/range.rb Data/Field type seems to have a bug when passed a string instead of a range by mistake, I encountered the behavior VIA my Rails Driven RESTish API.
request
{
"age_range": "10..55"
}
Stored value in mongo
{
"age_range": {
"min": 1,
"max": 5
}
}
My MODEL
class User include Mongoid::Document field :age_range, type: Range end
- is related to
-
MONGOID-3831 Updated the Range extension to allow for String to be passed and parsed ...
-
- Closed
-