mirror of
https://github.com/lostisland/faraday.git
synced 2025-10-17 00:05:28 -04:00
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:
parent
df798f2ba0
commit
4f0e5455d5
@ -92,7 +92,7 @@ module Faraday
|
|||||||
|
|
||||||
alias require_lib require_libs
|
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
|
default_connection.respond_to?(symbol) || super
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user