From 068092a91ffea044cf08babedbb0258167adb005 Mon Sep 17 00:00:00 2001 From: Alex Reisner <alex@alexreisner.com> Date: Tue, 8 Mar 2011 11:52:36 -0500 Subject: [PATCH] Don't use deprecated method. Use 'geocode' instead of 'fetch_coordinates!'. --- lib/tasks/geocoder.rake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/tasks/geocoder.rake b/lib/tasks/geocoder.rake index 0cc12c4f..b621b059 100644 --- a/lib/tasks/geocoder.rake +++ b/lib/tasks/geocoder.rake @@ -9,7 +9,7 @@ namespace :geocode do desc "Geocode all objects without coordinates." task :all => :environment do klass.not_geocoded.each do |obj| - obj.fetch_coordinates! + obj.geocode; obj.save end end end -- GitLab