-
Notifications
You must be signed in to change notification settings - Fork 63
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot chain geo_near #13
Comments
+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 |
kristianmandrup
referenced
this issue
in kristianmandrup/mongoid_geospatial
Nov 6, 2012
make the spec pass
same issue |
geo near queries cannot be chained in mongodb |
I am try to using Postgres with Postgis, It seems better than mongodb |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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
The text was updated successfully, but these errors were encountered: