1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

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

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.
#