Redefine respond_to? in light of method_missing

This commit is contained in:
Michael Kozono
2017-10-06 10:53:35 -07:00
parent e0a0c6b04e
commit 2df7d03586

View File

@ -290,6 +290,12 @@ module Gitlab
def method_missing(method, *args, &block)
@dn.send(method, *args, &block)
end
##
# Redefined to be consistent with redefined `method_missing` behavior
def respond_to?(sym, include_private = false)
@dn.respond_to?(sym, include_private)
end
end
end
end