houdini/app/controllers/campaigns/campaign_gift_options_controller.rb
2018-08-31 11:32:55 -05:00

15 lines
422 B
Ruby

# License: AGPL-3.0-or-later WITH Web-Template-Output-Additional-Permission-3.0-or-later
module Campaigns; class CampaignGiftOptionsController < ApplicationController
include Controllers::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