lib/addressfinder/location_search.rb in addressfinder-1.2.0 vs lib/addressfinder/location_search.rb in addressfinder-1.3.0
- old
+ new
@@ -8,9 +8,10 @@
def initialize(params:, http:)
@http = http
@country = params.delete(:country) || config.default_country
@params = params
+ @params['domain'] = params['domain'] || config.domain if (params['domain'] || config.domain)
@params['key'] = config.api_key
@params['secret'] = config.api_secret
end
def perform