houdini/app/controllers/campaigns/campaign_gift_options_controller.rb

16 lines
409 B
Ruby
Raw Normal View History

# License: AGPL-3.0-or-later WITH Web-Template-Output-Additional-Permission-3.0-or-later
module Campaigns; class CampaignGiftOptionsController < ApplicationController
include CampaignHelper
before_filter :authenticate_campaign_editor!, only: [:index]
def index
respond_to do |format|
format.json do
render json: QueryCampaignGifts.report_metrics(current_campaign.id)
end
end
end
end; end