Fix bug where campaign activites weren't properly found
This commit is contained in:
parent
bad7d5ba79
commit
f75ffcf09d
1 changed files with 2 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue