diff --git a/README.md b/README.md index 1285497b046d2289aee771a1da40ed1fd0706670..687c1fe1ea0bb469c8e3fae43e9004c5566c9e1b 100644 --- a/README.md +++ b/README.md @@ -507,7 +507,6 @@ When you install the Geocoder gem it adds a `geocode` command to your shell. You There are also a number of options for setting the geocoding API, key, and language, viewing the raw JSON reponse, and more. Please run `geocode -h` for details. - Notes on MongoDB ---------------- @@ -529,6 +528,13 @@ Calling `obj.coordinates` directly returns the internal representation of the co For consistency with the rest of Geocoder, always use the `to_coordinates` method instead. +Notes on Non-Rails Frameworks +----------------------------- + +If you are using Geocoder with ActiveRecord and a framework other than Rails (like Sinatra or Padrino) you will need to add this in your model before calling Geocoder methods: + + extend Geocoder::Model::ActiveRecord + Optimisation of Distance Queries --------------------------------