openaustralia/publicwhip

View on GitHub
app/models/person.rb

Summary

Maintainability
B
4 hrs
Test Coverage
B
88%

Class Person has 32 methods (exceeds 20 allowed). Consider refactoring.
Open

class Person < ApplicationRecord
  has_many :members, -> { order(entered_house: :desc) }, inverse_of: :person, dependent: :destroy
  has_many :policy_person_distances, dependent: :destroy
  has_many :offices, dependent: :destroy
  has_many :people_distances, foreign_key: :person1_id, dependent: :destroy, inverse_of: :person1
Severity: Minor
Found in app/models/person.rb - About 4 hrs to fix

    There are no issues that match your filters.

    Category
    Status