From 6459753b3c0ecb6fd0ab2284b352c5b36a2ded76 Mon Sep 17 00:00:00 2001
From: Alex Reisner <alex@alexreisner.com>
Date: Sun, 6 Mar 2011 00:51:14 -0500
Subject: [PATCH] Make read_coordinates method private.

---
 lib/geocoder/orms/base.rb | 19 +++++++++++--------
 1 file changed, 11 insertions(+), 8 deletions(-)

diff --git a/lib/geocoder/orms/base.rb b/lib/geocoder/orms/base.rb
index 422a9b37..e72a9687 100644
--- a/lib/geocoder/orms/base.rb
+++ b/lib/geocoder/orms/base.rb
@@ -2,14 +2,6 @@ module Geocoder
   module Orm
     module Base
 
-      ##
-      # Read the coordinates [lat,lon] of an object. This is not great but it
-      # seems cleaner than polluting the instance method namespace.
-      #
-      def read_coordinates
-        [:latitude, :longitude].map{ |i| send self.class.geocoder_options[i] }
-      end
-
       ##
       # Is this object geocoded? (Does it have latitude and longitude?)
       #
@@ -58,6 +50,17 @@ module Geocoder
           end
         end
       end
+
+
+      private # --------------------------------------------------------------
+
+      ##
+      # Read the coordinates [lat,lon] of the object.
+      # Looks at user config to determine attributes.
+      #
+      def read_coordinates
+        [:latitude, :longitude].map{ |i| send self.class.geocoder_options[i] }
+      end
     end
   end
 end
-- 
GitLab