lib/faraday/request.rb in faraday-1.10.1 vs lib/faraday/request.rb in faraday-1.10.2
- old
+ new
@@ -56,15 +56,14 @@
yield(request) if block_given?
end
end
def method
- warn <<~TEXT
- WARNING: `Faraday::Request##{__method__}` is deprecated; use `#http_method` instead. It will be removed in or after version 2.0.
- `Faraday::Request##{__method__}` called from #{caller_locations(1..1).first}
- TEXT
http_method
end
+
+ extend Faraday::Deprecate
+ deprecate :method, :http_method, '2.0'
# Replace params, preserving the existing hash type.
#
# @param hash [Hash] new params
def params=(hash)