summaryrefslogtreecommitdiff
path: root/rubocop
diff options
context:
space:
mode:
authorJacopo <beschi.jacopo@gmail.com>2018-08-28 16:02:48 +0200
committerJacopo <beschi.jacopo@gmail.com>2018-08-29 16:56:34 +0200
commit4a37cd0dc08ccef417a423b3a9a91b33c26c4199 (patch)
treec1e18140d24742d367cee77a6785608f460f4ada /rubocop
parente3e746623b2fa6c45dab66dd1618810a53cdecd8 (diff)
downloadgitlab-ce-4a37cd0dc08ccef417a423b3a9a91b33c26c4199.tar.gz
Minor renames for clarity
Diffstat (limited to 'rubocop')
-rw-r--r--rubocop/cop/prefer_class_methods_over_module.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/rubocop/cop/prefer_class_methods_over_module.rb b/rubocop/cop/prefer_class_methods_over_module.rb
index 5097dc7829d..0dfa80ccfab 100644
--- a/rubocop/cop/prefer_class_methods_over_module.rb
+++ b/rubocop/cop/prefer_class_methods_over_module.rb
@@ -36,7 +36,7 @@ module RuboCop
PATTERN
def on_module(node)
- add_offense(node) if node.defined_module_name == 'ClassMethods' && extends_activesupport_concern?(node)
+ add_offense(node) if node.defined_module_name == 'ClassMethods' && module_extends_activesupport_concern?(node)
end
def autocorrect(node)
@@ -47,7 +47,7 @@ module RuboCop
private
- def extends_activesupport_concern?(node)
+ def module_extends_activesupport_concern?(node)
container_module = container_module_of(node)
return false unless container_module