mirror of
https://github.com/rickbarrette/redmine_qbo.git
synced 2026-08-18 20:30:43 -04:00
Refactor associations in IssuePatch for clarity and consistency
This commit is contained in:
@@ -14,9 +14,9 @@ module RedmineQbo
|
|||||||
extend ActiveSupport::Concern
|
extend ActiveSupport::Concern
|
||||||
|
|
||||||
prepended do
|
prepended do
|
||||||
belongs_to :customer, class_name: 'Customer', foreign_key: :customer_id, optional: true
|
belongs_to :customer
|
||||||
belongs_to :customer_token, primary_key: :id, optional: true
|
belongs_to :customer_token
|
||||||
belongs_to :estimate, primary_key: :id, optional: true
|
belongs_to :estimate
|
||||||
has_and_belongs_to_many :invoices
|
has_and_belongs_to_many :invoices
|
||||||
|
|
||||||
before_save :titlize_subject
|
before_save :titlize_subject
|
||||||
|
|||||||
Reference in New Issue
Block a user