mirror of
https://gitlab.com/gitlab-org/gitlab-foss.git
synced 2025-08-13 13:31:19 +00:00
Redefine respond_to?
in light of method_missing
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user