Refactor associations in IssuePatch for clarity and consistency

This commit is contained in:
2026-08-09 20:47:42 -04:00
parent b3c3006b56
commit 396a56ceec
+3 -3
View File
@@ -14,9 +14,9 @@ module RedmineQbo
extend ActiveSupport::Concern
prepended do
belongs_to :customer, class_name: 'Customer', foreign_key: :customer_id, optional: true
belongs_to :customer_token, primary_key: :id, optional: true
belongs_to :estimate, primary_key: :id, optional: true
belongs_to :customer
belongs_to :customer_token
belongs_to :estimate
has_and_belongs_to_many :invoices
before_save :titlize_subject