lib/github_api/connection.rb in github_api-0.6.0 vs lib/github_api/connection.rb in github_api-0.6.1
- old
+ new
@@ -43,10 +43,10 @@
!@connection.nil?
end
def connection(options = {}) # :nodoc:
- merged_options = _filter_params_keys(ALLOWED_OPTIONS, default_options.merge(options))
+ merged_options = filter! ALLOWED_OPTIONS, default_options.merge(options)
clear_cache unless options.empty?
@connection ||= begin
Faraday.new(merged_options.merge(connection_options)) do |builder|
puts options.inspect if ENV['DEBUG']