api_url → url
This commit is contained in:
parent
a7019719c2
commit
d749d20bb3
1 changed files with 2 additions and 2 deletions
|
@ -16,8 +16,8 @@ module ApiGeo
|
|||
|
||||
private
|
||||
|
||||
def self.call(api_url)
|
||||
RestClient.get(api_url, params: { fields: :nom })
|
||||
def self.call(url)
|
||||
RestClient.get(url, params: { fields: :nom })
|
||||
rescue RestClient::ServiceUnavailable
|
||||
nil
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue