houdini/app/controllers/campaign_gifts_controller.rb

17 lines
502 B
Ruby
Raw Normal View History

# frozen_string_literal: true
2020-06-12 20:03:43 +00:00
# License: AGPL-3.0-or-later WITH WTO-AP-3.0-or-later
# Full license explanation at https://github.com/houdiniproject/houdini/blob/master/LICENSE
class CampaignGiftsController < ApplicationController
# post /campaign_gifts
def create
2019-08-06 12:36:53 +00:00
json_saved CreateCampaignGift.create campaign_gift_params
end
private
def campaign_gift_params
params.require(:campaign_gift).permit(:donation_id, :donation, :campaign_gift_option, :campaign_gift_option_id)
end
end