From e39721c7e64d9717584c6be96804a8d3c328affd Mon Sep 17 00:00:00 2001 From: Dan Milne Date: Sat, 2 May 2026 23:39:29 +1000 Subject: [PATCH] Fix broken invitation email text template The text part used non-existent helpers (`invite_url`, `@user.invitation_login_token`) and Ruby string interpolation in an ERB file, so multipart delivery failed at render time and no invite mail went out. Mirror the HTML template instead. Co-Authored-By: Claude Opus 4.7 (1M context) --- app/views/invitations_mailer/invite_user.text.erb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/views/invitations_mailer/invite_user.text.erb b/app/views/invitations_mailer/invite_user.text.erb index 572a1fc..4a4d972 100644 --- a/app/views/invitations_mailer/invite_user.text.erb +++ b/app/views/invitations_mailer/invite_user.text.erb @@ -1,8 +1,8 @@ You've been invited to join Clinch! To set up your account and create your password, please visit: -#{invite_url(@user.invitation_login_token)} +<%= invitation_url(@user.generate_token_for(:invitation_login)) %> -This invitation link will expire in #{distance_of_time_in_words(0, @user.invitation_login_token_expires_in)}. +This invitation link will expire in 24 hours. If you didn't expect this invitation, you can safely ignore this email. \ No newline at end of file