From 46a49fdda3a6b7e4e8d377c903f1a0e889006c78 Mon Sep 17 00:00:00 2001 From: Alex Reisner <alex@alexreisner.com> Date: Mon, 7 Mar 2011 22:41:16 -0500 Subject: [PATCH] No need to call 'first'. This should have been part of commit 8cc460f. --- lib/geocoder/request.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/geocoder/request.rb b/lib/geocoder/request.rb index 9409074c..909e9b35 100644 --- a/lib/geocoder/request.rb +++ b/lib/geocoder/request.rb @@ -10,7 +10,7 @@ module Geocoder # but return a Geocoder::Result for consistency @location = Geocoder::Result::Freegeoip.new("ip" => ip) else - @location = Geocoder.search(ip).first + @location = Geocoder.search(ip) end end @location -- GitLab