ryanong / mongoid_spacial

A Mongoid Extention that simplifies and adds support for MongoDB Geo Spacial Calculations.
MIT License
138 stars 63 forks source link

spacial_index :location don't throw exception or error if latitude or longitude are out of range #29

Open jorditamargo opened 12 years ago

jorditamargo commented 12 years ago

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