Class: RailsLens::Analyzers::AssociationAnalyzer

Inherits:
Base
  • Object
show all
Defined in:
lib/rails_lens/analyzers/association_analyzer.rb

Instance Attribute Summary

Attributes inherited from Base

#model_class

Instance Method Summary collapse

Methods inherited from Base

#initialize

Methods included from ErrorHandling

#safe_analyze

Constructor Details

This class inherits a constructor from RailsLens::Analyzers::Base

Instance Method Details

#analyzeObject



6
7
8
9
10
11
12
# File 'lib/rails_lens/analyzers/association_analyzer.rb', line 6

def analyze
  notes = []
  notes.concat(analyze_inverse_of)
  notes.concat(analyze_n_plus_one_risks)
  notes.concat(analyze_counter_caches)
  notes
end