summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Kozono <mkozono@gmail.com>2017-10-06 10:53:35 -0700
committerMichael Kozono <mkozono@gmail.com>2017-10-07 10:28:13 -0700
commit2df7d03586dbe9daa883ccd660d77d7522df29f8 (patch)
treec3cf598b9d318fb80372ab37de08e00494faea76
parente0a0c6b04ebcd92640cd9a840c5a45ec39d0d59a (diff)
downloadgitlab-ce-2df7d03586dbe9daa883ccd660d77d7522df29f8.tar.gz
Redefine `respond_to?` in light of `method_missing`
-rw-r--r--lib/gitlab/ldap/dn.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/gitlab/ldap/dn.rb b/lib/gitlab/ldap/dn.rb
index ad66f5e96e4..d6142dc6549 100644
--- a/lib/gitlab/ldap/dn.rb
+++ b/lib/gitlab/ldap/dn.rb
@@ -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