diff --git a/app/lib/api_adresse/address_retriever.rb b/app/lib/api_adresse/address_retriever.rb index 20ca589e1..8bbd9ab38 100644 --- a/app/lib/api_adresse/address_retriever.rb +++ b/app/lib/api_adresse/address_retriever.rb @@ -13,7 +13,7 @@ module ApiAdresse private def driver - @driver ||= ApiAdresse::Driver.new @address, 5 + @driver ||= ApiAdresse::Driver.new(@address, 5) end def convert_driver_result_to_full_address diff --git a/app/lib/api_adresse/driver.rb b/app/lib/api_adresse/driver.rb index 71c15a18b..47b8a755d 100644 --- a/app/lib/api_adresse/driver.rb +++ b/app/lib/api_adresse/driver.rb @@ -8,7 +8,7 @@ module ApiAdresse end def call - RestClient.get api_url, params: { q: @address, limit: @limit } + RestClient.get(api_url, params: { q: @address, limit: @limit }) rescue RestClient::ServiceUnavailable nil end diff --git a/app/lib/api_adresse/point_retriever.rb b/app/lib/api_adresse/point_retriever.rb index 71b10565f..a788f70ab 100644 --- a/app/lib/api_adresse/point_retriever.rb +++ b/app/lib/api_adresse/point_retriever.rb @@ -13,7 +13,7 @@ module ApiAdresse private def driver - @driver ||= ApiAdresse::Driver.new @address + @driver ||= ApiAdresse::Driver.new(@address) end def convert_driver_result_to_point