From 247c667a90ce9c901c05731a626efd982700f8c4 Mon Sep 17 00:00:00 2001 From: Tom Naessens Date: Sun, 19 May 2024 14:35:15 +0200 Subject: [PATCH] Fix safe_join references --- app/controllers/partners_controller.rb | 2 +- app/controllers/sign_in_controller.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/controllers/partners_controller.rb b/app/controllers/partners_controller.rb index ded5d1cb..212ff3ca 100644 --- a/app/controllers/partners_controller.rb +++ b/app/controllers/partners_controller.rb @@ -100,7 +100,7 @@ def confirm @registration.deliver flash.now[:success] = "Your invitation has been confirmed. Your ticket should arrive shortly." else - flash.now[:error] = safe_join( + flash.now[:error] = ActionController::Base.helpers.safe_join( "It looks like there already is someone with your name and/or email registered for this event. ", view_context.mail_to(@event.contact_email, 'Contact us'), " if this is not correct." diff --git a/app/controllers/sign_in_controller.rb b/app/controllers/sign_in_controller.rb index d41afd1f..ea2ca8e4 100644 --- a/app/controllers/sign_in_controller.rb +++ b/app/controllers/sign_in_controller.rb @@ -28,7 +28,7 @@ def authenticate_partner_from_token! if partner sign_in partner, store: SimpleTokenAuthentication.sign_in_token else - flash[:error] = safe_join( + flash[:error] = ActionController::Base.helpers.safe_join( "Something went wrong. Make sure you click the link or copy the whole link (including parameters)! ", view_context.mail_to(@event.contact_email, 'Contact us'), " if the problem persists."