Skip to content
Snippets Groups Projects
Commit 068092a9 authored by Alex Reisner's avatar Alex Reisner
Browse files

Don't use deprecated method.

Use 'geocode' instead of 'fetch_coordinates!'.
parent 1412dbc3
No related branches found
No related tags found
No related merge requests found
...@@ -9,7 +9,7 @@ namespace :geocode do ...@@ -9,7 +9,7 @@ namespace :geocode do
desc "Geocode all objects without coordinates." desc "Geocode all objects without coordinates."
task :all => :environment do task :all => :environment do
klass.not_geocoded.each do |obj| klass.not_geocoded.each do |obj|
obj.fetch_coordinates! obj.geocode; obj.save
end end
end end
end end
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment