Skip to content

Commit

Permalink
Update lib/faraday/deprecate.rb
Browse files Browse the repository at this point in the history
Co-Authored-By: Bobby McDonald <BobbyMcWho@users.noreply.github.com>
  • Loading branch information
technoweenie and BobbyMcWho committed Oct 18, 2019
1 parent 6198c75 commit 5b0ebf7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/faraday/deprecate.rb
Expand Up @@ -12,7 +12,7 @@ def self.proxy_class(new_klass)
class << k
extend Faraday::Deprecate
# Make this more human readable than #<Class:Faraday::ClientError>
klass_name = superclass.to_s[/^#<Class:(\w{1}[\w:]*)>$/, 1]
klass_name = superclass.to_s[/^#<Class:([\w:]+)>$/, 1]
deprecate :new, "#{klass_name}.new", '1.0'
deprecate :inherited, klass_name, '1.0'

Expand Down

0 comments on commit 5b0ebf7

Please sign in to comment.