lib/gh/custom_limit.rb in gh-0.11.2 vs lib/gh/custom_limit.rb in gh-0.11.3
- old
+ new
@@ -7,21 +7,21 @@
@client_id = options[:client_id]
@client_secret = options[:client_secret]
super
end
- def fetch_resource(key)
+ def full_url(key)
return super unless client_id
- url = full_url(key)
+ url = super
params = url.query_values || {}
unless params.include? 'client_id'
params['client_id'] = client_id
params['client_secret'] = client_secret
end
url.query_values = params
- super url.request_uri
+ url
end
end
end