app/models/calagator/venue/geocoder.rb in koalagator-2.0.0 vs app/models/calagator/venue/geocoder.rb in koalagator-2.1.0
- old
+ new
@@ -43,19 +43,19 @@
end
def should_geocode?
[
perform_geocoding,
- (venue.location.blank? || venue.force_geocoding == '1'),
+ (venue.location.blank? || venue.force_geocoding == "1"),
venue.geocode_address.present?,
venue.duplicate_of.blank?
].all?
end
def log
- venue_id = venue.new_record? ? 'new record' : "record #{venue.id}"
- status = geo.success ? 'was successful' : 'failed'
- message = "Venue#add_geocoding for #{venue} #{status}, response was: #{geo.inspect}"
+ venue_id = venue.new_record? ? "new record" : "record #{venue.id}"
+ status = geo.success ? "was successful" : "failed"
+ message = "Venue#add_geocoding for #{venue_id} #{status}, response was: #{geo.inspect}"
Rails.logger.info message
end
end
end
end