diff --git a/app/controllers/campaigns_controller.rb b/app/controllers/campaigns_controller.rb index c33bec5b..37d15dc3 100644 --- a/app/controllers/campaigns_controller.rb +++ b/app/controllers/campaigns_controller.rb @@ -48,7 +48,8 @@ class CampaignsController < ApplicationController end def activities - render json: QueryDonations.for_campaign_activities(params[:id]) + @campaign = current_campaign + render json: QueryDonations.for_campaign_activities(@campaign.id) end def create