From ca311eab4adece636e3ccfed2f7ca886e3c36c5d Mon Sep 17 00:00:00 2001
From: Alex Reisner <alex@alexreisner.com>
Date: Wed, 23 May 2012 23:52:05 -0400
Subject: [PATCH] Move configure method to different file.

---
 lib/geocoder.rb               | 11 -----------
 lib/geocoder/configuration.rb | 12 ++++++++++++
 2 files changed, 12 insertions(+), 11 deletions(-)

diff --git a/lib/geocoder.rb b/lib/geocoder.rb
index 0882f15e..18ca7948 100644
--- a/lib/geocoder.rb
+++ b/lib/geocoder.rb
@@ -10,17 +10,6 @@ require "geocoder/models/mongo_mapper" if defined?(::MongoMapper)
 module Geocoder
   extend self
 
-  # This method can be used to change some functional aspects, like,
-  # the geocoding service provider, or the units of calculations.
-  # Please see {include:Configuration}
-  def configure(&block)
-    if block_given?
-      module_eval(&block)
-    else
-      Configuration.instance
-    end
-  end
-
   ##
   # Search for information about an address or a set of coordinates.
   #
diff --git a/lib/geocoder/configuration.rb b/lib/geocoder/configuration.rb
index b0d4d6a5..dfa46101 100644
--- a/lib/geocoder/configuration.rb
+++ b/lib/geocoder/configuration.rb
@@ -2,6 +2,18 @@ require 'singleton'
 
 module Geocoder
 
+  ##
+  # This method can be used to change some functional aspects, like,
+  # the geocoding service provider, or the units of calculations.
+  # Please see {include:Configuration}
+  def self.configure(&block)
+    if block_given?
+      module_eval(&block)
+    else
+      Configuration.instance
+    end
+  end
+
   # This class handle the configuration process of Geocoder gem, and can be used
   # to change some functional aspects, like, the geocoding service provider, or
   # the units of calculations.
-- 
GitLab