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:
Diffstat (limited to 'lib/gitlab/utils/override.rb')
-rw-r--r--lib/gitlab/utils/override.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/gitlab/utils/override.rb b/lib/gitlab/utils/override.rb
index 39670a835a6..f83ebba7c3f 100644
--- a/lib/gitlab/utils/override.rb
+++ b/lib/gitlab/utils/override.rb
@@ -67,8 +67,8 @@ module Gitlab
private
def instance_method_defined?(klass, name)
- klass.instance_methods(false).include?(name) ||
- klass.private_instance_methods(false).include?(name)
+ klass.method_defined?(name, false) ||
+ klass.private_method_defined?(name, false)
end
def find_direct_method(klass, name)