Class: RuboCop::Cops::AmsSerializer
- Inherits:
-
RuboCop::Cop::Base
- Object
- RuboCop::Cop::Base
- RuboCop::Cops::AmsSerializer
- Defined in:
- lib/rubocop/cops/ams_serializer.rb
Constant Summary collapse
- MSG =
'Use JSONAPI::Serializer instead of ActiveModel::Serializer'
Instance Method Summary collapse
Instance Method Details
#on_class(node) ⇒ Object
19 20 21 |
# File 'lib/rubocop/cops/ams_serializer.rb', line 19 def on_class(node) add_offense(node.children[1]) if active_model_serializer?(node) end |