class GeocodingTask
  @queue = :geocoding

  def self.perform(document_id)
    document = Document.find(document_id)
    #document.update_attribute :state, :geocoding
    document.addresses_found.each do |address|
      address.geocode("London") if not address.geocoded?
      address.save
    end
  end
end

class GeocodingTask
  @queue = :geocoding

  def self.perform(document_id)
    document = Document.find(document_id)
    #document.update_attribute :state, :geocoding
    document.addresses_found.each do |address|
      address.geocode if not address.geocoded?
      address.save
    end
  end
end

Revert "Temporaly hardcode London as central place in geocoding"
Revert "Temporaly hardcode London as central place in geocoding"

This reverts commit deb2fccd72199f9ed8bd59f202e055dd0242db0f.
