fix(campaign): add explicit source for payments relation
This commit is contained in:
parent
4992253540
commit
22bf0713f9
1 changed files with 1 additions and 1 deletions
|
@ -57,7 +57,7 @@ class Campaign < ApplicationRecord
|
||||||
|
|
||||||
has_many :donations
|
has_many :donations
|
||||||
has_many :charges, through: :donations
|
has_many :charges, through: :donations
|
||||||
has_many :payments, through: :donations
|
has_many :payments, { through: :donations, source: "payment" }
|
||||||
has_many :campaign_gift_options
|
has_many :campaign_gift_options
|
||||||
has_many :campaign_gifts, through: :campaign_gift_options
|
has_many :campaign_gifts, through: :campaign_gift_options
|
||||||
has_many :supporters, :through => :donations
|
has_many :supporters, :through => :donations
|
||||||
|
|
Loading…
Reference in a new issue