Skip to content

Commit

Permalink
Fix safe_join references
Browse files Browse the repository at this point in the history
  • Loading branch information
TomNaessens committed May 19, 2024
1 parent 3d28ebd commit 247c667
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/controllers/partners_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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."
Expand Down
2 changes: 1 addition & 1 deletion app/controllers/sign_in_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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."
Expand Down

0 comments on commit 247c667

Please sign in to comment.