mirror of https://github.com/rails/rails
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:
parent
ee6518137c
commit
8fe649a4dc
|
@ -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.
|
||||
#
|
||||
|
|
Loading…
Reference in New Issue