Skip to content
Snippets Groups Projects
Commit 2eba7039 authored by ZebThan's avatar ZebThan
Browse files

update readme to state how to use ':order => false'

parent 30378b1e
No related branches found
No related tags found
No related merge requests found
......@@ -159,6 +159,10 @@ To find objects by location, use the following scopes:
Venue.geocoded # venues with coordinates
Venue.not_geocoded # venues without coordinates
Objects are ordered by distance by default. To turn it off use the following:
Venue.near('Omaha', 20, :order => false) # Venue.near('Omaha', :order => false) will cause an error.
With geocoded objects you can do things like this:
if obj.geocoded?
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment