17 lines
439 B
Ruby
17 lines
439 B
Ruby
# frozen_string_literal: true
|
|
|
|
# License: AGPL-3.0-or-later WITH Web-Template-Output-Additional-Permission-3.0-or-later
|
|
class CampaignGift < ApplicationRecord
|
|
# TODO
|
|
# attr_accessible \
|
|
# :donation_id,
|
|
# :donation,
|
|
# :campaign_gift_option,
|
|
# :campaign_gift_option_id
|
|
|
|
belongs_to :donation
|
|
belongs_to :campaign_gift_option
|
|
|
|
validates :donation, presence: true
|
|
validates :campaign_gift_option, presence: true
|
|
end
|