From ad7fdc0f48f4264b560fc22df39dbe03b55165ad Mon Sep 17 00:00:00 2001
From: Alex Reisner <alex@alexreisner.com>
Date: Wed, 3 Apr 2013 13:27:50 -0400
Subject: [PATCH] Rename method for consistency (use separate words).

---
 lib/geocoder/calculations.rb | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/lib/geocoder/calculations.rb b/lib/geocoder/calculations.rb
index ae912dde..832ef3e0 100644
--- a/lib/geocoder/calculations.rb
+++ b/lib/geocoder/calculations.rb
@@ -271,7 +271,7 @@ module Geocoder
     ##
     # Convert kilometers to nautical miles.
     #
-    def to_nauticalmiles(km)
+    def to_nautical_miles(km)
       km * km_in_nm
     end
 
@@ -287,7 +287,7 @@ module Geocoder
 	when :mi
         	to_miles(EARTH_RADIUS)
 	when :nm
-      		to_nauticalmiles(EARTH_RADIUS)
+      		to_nautical_miles(EARTH_RADIUS)
       end
     end
 
-- 
GitLab