README.md in mongoid_spacial-0.2.7 vs README.md in mongoid_spacial-0.2.8
- old
+ new
@@ -136,12 +136,11 @@
# :page
# :paginator
#
# both return a GeoNearResults, which is really just a modified Array
# #per really just #page but just moves the options around
-rivers = River.geo_near([-73.99756,40.73083]).sort_by!{|r| r.modified_distance}
+rivers = River.geo_near([-73.99756,40.73083]).sort_by!{|r| r.geo[:distance] * r.multiplier }
rivers = rivers.per(25).page(1)
-rivers = rivers.page(5, :original => 1) # by adding the original option you can re-paginate to any area.
rivers.reset! # resets the object to it is original state right after query.
```
Thanks
-----------