vegantech/sims

View on GitHub
app/models/district.rb

Summary

Maintainability
C
7 hrs
Test Coverage

Class District has 39 methods (exceeds 20 allowed). Consider refactoring.
Open

class District < ActiveRecord::Base

#  ActiveSupport::Dependencies.load_missing_constant self, :StudentsController
  SETTINGS = [:key, :previous_key, :custom_interventions ]
  BOOLEAN_SETTINGS = [:restrict_free_lunch, :forgot_password, :lock_tier, :email_on_team_consultation_response, :show_team_consultations_if_pending]
Severity: Minor
Found in app/models/district.rb - About 5 hrs to fix

    File district.rb has 255 lines of code (exceeds 250 allowed). Consider refactoring.
    Open

    class District < ActiveRecord::Base
    
    #  ActiveSupport::Dependencies.load_missing_constant self, :StudentsController
      SETTINGS = [:key, :previous_key, :custom_interventions ]
      BOOLEAN_SETTINGS = [:restrict_free_lunch, :forgot_password, :lock_tier, :email_on_team_consultation_response, :show_team_consultations_if_pending]
    Severity: Minor
    Found in app/models/district.rb - About 2 hrs to fix

      There are no issues that match your filters.

      Category
      Status