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
|
end
|
||||||
|
|
||||||
def activities
|
def activities
|
||||||
render json: QueryDonations.for_campaign_activities(params[:id])
|
@campaign = current_campaign
|
||||||
|
render json: QueryDonations.for_campaign_activities(@campaign.id)
|
||||||
end
|
end
|
||||||
|
|
||||||
def create
|
def create
|
||||||
|
|
Loading…
Reference in a new issue