Commit 02db70fb authored by Mario Manno's avatar Mario Manno Committed by Mario Manno

replace deprecated find_by_all with where

parent aa01fd12
......@@ -103,11 +103,11 @@ class Cfp::EventsController < ApplicationController
return redirect_to cfp_root_path, flash:{ error: t('cfp.no_confirmation_token') }
end
event_people = event_person.person.event_people.find_all_by_event_id(params[:id])
event_people = event_person.person.event_people.where(event_id: params[:id])
login_as(event_person.person.user) if event_person.person.user
else
raise "Unauthenticated" unless current_user
event_people = current_user.person.event_people.find_all_by_event_id(params[:id])
event_people = current_user.person.event_people.where(event_id: params[:id])
end
event_people.each do |event_person|
event_person.confirm!
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment