Skip to content
Snippets Groups Projects
Commit a8f8f5df authored by Alex Reisner's avatar Alex Reisner
Browse files

Add note about ActiveRecord with non-Rails frameworks.

parent 791cc711
No related branches found
No related tags found
No related merge requests found
......@@ -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
--------------------------------
......
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