Skip to content

Instantly share code, notes, and snippets.

@beef
Created May 28, 2009 16:33
Show Gist options
  • Save beef/119424 to your computer and use it in GitHub Desktop.
Save beef/119424 to your computer and use it in GitHub Desktop.
Geocode.all.each do |g|
begin
g.update_attributes( Geocode.geocoder.locate(g.query).attributes )
rescue
g.destroy
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment