Fix bug where campaign activites weren't properly found

This commit is contained in:
Eric Schultz 2018-11-21 13:47:27 -06:00
parent bad7d5ba79
commit f75ffcf09d

View file

@ -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