Class: RuboCop::Cop::Teamtailor::NoEmbeddingsInActiveModelSerializer
- Inherits:
-
Base
- Object
- Base
- RuboCop::Cop::Teamtailor::NoEmbeddingsInActiveModelSerializer
- Defined in:
- lib/rubocop/cop/teamtailor/no_embeddings_in_active_model_serializer.rb
Constant Summary collapse
- MSG =
"No embedding of records"
Instance Method Summary collapse
Instance Method Details
#on_class(class_node) ⇒ Object
17 18 19 20 |
# File 'lib/rubocop/cop/teamtailor/no_embeddings_in_active_model_serializer.rb', line 17 def on_class(class_node) return unless class_node.defined_module_name.end_with?("Serializer") check_children(class_node) end |