mongoid_spacial
mongoid_spacial copied to clipboard
spacial_index :location don't throw exception or error if latitude or longitude are out of range
when trying to save location (an spacial_index field) with latitude or longitude parameters out of range, the mongoid save seems to work correct (no error, no exception), if you print object after save it seems that all is correct, including lat,lon and location, but when you get the object from database there wasn't changed fields, like if mongoid revert all these changes.
Thanks