AgileVentures/osra

View on GitHub

Showing 2 of 4 total issues

Class Orphan has 23 methods (exceeds 20 allowed). Consider refactoring.
Open

class Orphan < ActiveRecord::Base
  include Initializer
  include DateHelpers
  include OrphanAttrFilter

Severity: Minor
Found in app/models/orphan.rb - About 2 hrs to fix

    Method validate has 26 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

      def validate
        get_partner
    
        unless @partner.active?
          flash[:alert] = 'Partner is not Active. Orphan List cannot be uploaded.'
    Severity: Minor
    Found in app/controllers/pending_orphan_lists_controller.rb - About 1 hr to fix
      Severity
      Category
      Status
      Source
      Language