diff options
Diffstat (limited to 'rubocop')
-rw-r--r-- | rubocop/cop/prefer_class_methods_over_module.rb | 4 |
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 |