Fix Pry deprecation warning on tab-completion

Same thing as #37100, but [pry also calls `#respond_to?` on the target object](fa97d5c299/lib/pry/input_completer.rb (L194)). 

Fixes #37097 for Pry users.
This commit is contained in:
Tim Dorr 2019-10-14 13:11:19 -04:00 committed by Kasper Timm Hansen
parent ee6518137c
commit 8fe649a4dc
No known key found for this signature in database
GPG Key ID: 191153215EDA53D8
1 changed files with 1 additions and 1 deletions

View File

@ -147,7 +147,7 @@ module ActiveSupport
# Don't give a deprecation warning on methods that IRB may invoke
# during tab-completion.
delegate :hash, :instance_methods, :name, to: :target
delegate :hash, :instance_methods, :name, :respond_to?, to: :target
# Returns the class of the new constant.
#