mongoid_spacial
mongoid_spacial copied to clipboard
A Mongoid Extention that simplifies and adds support for MongoDB Geo Spacial Calculations.
Hey Ryan, Does your gem support multilocation documents(array of locations)? http://www.mongodb.org/display/DOCS/Geospatial+Indexing#GeospatialIndexing-MultilocationDocuments Thank you!
with the error Mongo::MongoArgumentError: DB#command requires an OrderedHash when hash contains multiple keys
`mongoid_spacial/lib/mongoid_spacial/field_option.rb` contanins returns in assignment context, afaik in ruby they're ignored https://github.com/ryanong/mongoid_spacial/blob/master/lib/mongoid_spacial/field_option.rb#L32
The problem is that `geo_fields` is not defined anywhere, but it is referenced on here: https://github.com/ryanong/mongoid_spacial/blob/master/lib/mongoid_spacial/spacial/geo_near_results.rb#L29
Okay so should I fix it? It is really bothering me but would break a lot of code....