bikeindex/bike_index

View on GitHub
app/models/invoice.rb

Summary

Maintainability
A
2 hrs
Test Coverage
C
71%

Class Invoice has 42 methods (exceeds 40 allowed). Consider refactoring.
Open

class Invoice < ApplicationRecord
  include Amountable # included for formatting stuff
  belongs_to :organization
  belongs_to :first_invoice, class_name: "Invoice" # Use subscription_first_invoice_id + subscription_first_invoice, NOT THIS

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

    There are no issues that match your filters.

    Category
    Status