app/models/invoice.rb
Class Invoice
has 42 methods (exceeds 40 allowed). Consider refactoring. Open
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