Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Kozono <mkozono@gmail.com>2017-10-06 20:53:35 +0300
committerMichael Kozono <mkozono@gmail.com>2017-10-07 20:28:13 +0300
commit2df7d03586dbe9daa883ccd660d77d7522df29f8 (patch)
treec3cf598b9d318fb80372ab37de08e00494faea76 /lib/gitlab/ldap
parente0a0c6b04ebcd92640cd9a840c5a45ec39d0d59a (diff)
Redefine `respond_to?` in light of `method_missing`
Diffstat (limited to 'lib/gitlab/ldap')
-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