diff options
author | Jacopo <beschi.jacopo@gmail.com> | 2018-08-28 17:02:48 +0300 |
---|---|---|
committer | Jacopo <beschi.jacopo@gmail.com> | 2018-08-29 17:56:34 +0300 |
commit | 4a37cd0dc08ccef417a423b3a9a91b33c26c4199 (patch) | |
tree | c1e18140d24742d367cee77a6785608f460f4ada /rubocop/cop | |
parent | e3e746623b2fa6c45dab66dd1618810a53cdecd8 (diff) |
Minor renames for clarity
Diffstat (limited to 'rubocop/cop')
-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 |