From 396a56ceecee4223863e18087192a20eb36db184 Mon Sep 17 00:00:00 2001 From: Rick Barrette Date: Sun, 9 Aug 2026 20:47:42 -0400 Subject: [PATCH] Refactor associations in IssuePatch for clarity and consistency --- lib/redmine_qbo/patches/issue_patch.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/redmine_qbo/patches/issue_patch.rb b/lib/redmine_qbo/patches/issue_patch.rb index 17ace76..7bed5c7 100644 --- a/lib/redmine_qbo/patches/issue_patch.rb +++ b/lib/redmine_qbo/patches/issue_patch.rb @@ -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