Open pdelanauze opened 12 years ago
+1, would be really great if geo_near queries could be chained with scopes
This just threw a wrench in one of my search models... +1 Please implement this feature
same issue
geo near queries cannot be chained in mongodb
I am try to using Postgres with Postgis, It seems better than mongodb
Can we not chain the geo_near query ?
Say we have a scope
This chain would work:
This would not, throws a NoMethodError: undefined method `scoped' for #Mongoid::Spacial::GeoNearResults:0x00000105455258
Also, wrapping geo_near in a scope results in the same exception being thrown... e.g.
Here's the stack trace