Fix failure to use strong params in campaigns_controller.rb

This commit is contained in:
Eric Schultz 2021-03-18 12:24:07 -05:00 committed by Eric Schultz
parent aa83977fed
commit 2ea9cf0da3

View file

@ -61,7 +61,7 @@ class CampaignsController < ApplicationController
end
def create
@campaign = CreateCampaign.create(params, current_nonprofit)
@campaign = CreateCampaign.create(campaign_params, current_nonprofit)
if (@campaign.errors.empty?)
render 'campaigns/create', campaign: @campaign
else