lib/addressfinder/location_search.rb in addressfinder-1.4.0 vs lib/addressfinder/location_search.rb in addressfinder-1.5.0
- old
+ new
@@ -9,11 +9,11 @@
@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
+ @params[:key] ||= config.api_key
+ @params[:secret] ||= config.api_secret
end
def perform
build_request
execute_request