- Refactor code carte

- Delete auto-comments when edit carte and description
This commit is contained in:
Xavier J 2016-01-27 15:48:27 +01:00
parent c461d58297
commit 5513504555
9 changed files with 74 additions and 119 deletions

View file

@ -2,7 +2,7 @@ module Carto
# this class take a string in input and return a point
class Geocodeur
def self.convert_adresse_to_point(address)
Carto::Bano::PointRetriever.new(address)
Carto::Bano::PointRetriever.new(address).point
rescue RestClient::Exception, JSON::ParserError => e
Rails.logger.error e.message
nil