From a8f8f5dff05b3ed6db2de7cb3c7aa67c944a8d16 Mon Sep 17 00:00:00 2001
From: Alex Reisner <alex@alexreisner.com>
Date: Wed, 14 Nov 2012 18:12:14 -0500
Subject: [PATCH] Add note about ActiveRecord with non-Rails frameworks.

---
 README.md | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/README.md b/README.md
index 1285497b..687c1fe1 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
 --------------------------------
 
-- 
GitLab