Class: RuboCop::Cop::Platanus::NoEnumerize
- Inherits:
-
Base
- Object
- Base
- RuboCop::Cop::Platanus::NoEnumerize
- Extended by:
- AutoCorrector
- Defined in:
- lib/rubocop/cop/platanus/no_enumerize.rb
Overview
Prefer usage of Rails ‘enum` instead of `Enumerize`
Constant Summary collapse
- MSG =
'Use Rails `enum` instead of `enumerize`.'
Instance Method Summary collapse
Instance Method Details
#on_send(node) ⇒ Object
45 46 47 48 |
# File 'lib/rubocop/cop/platanus/no_enumerize.rb', line 45 def on_send(node) on_extend_enumerize(node) on_enumerize(node) end |