Use respond_to? for compatibility.

Older versions of Ruby do not support `respond_to_missing?`. In order
to reach a wider audience, we simply define `respond_to?`.
This commit is contained in:
Josh Lubaway 2016-04-04 22:33:17 -07:00
parent df798f2ba0
commit 4f0e5455d5

View File

@ -92,7 +92,7 @@ module Faraday
alias require_lib require_libs
def respond_to_missing?(symbol, include_private = false)
def respond_to?(symbol, include_private = false)
default_connection.respond_to?(symbol) || super
end