From 064964448ab0082aa2d422823d3e556defac54de Mon Sep 17 00:00:00 2001 From: anaresgalla Date: Thu, 15 Feb 2024 19:39:31 -0300 Subject: [PATCH] Corrige testes quebrados e problemas de rubocop --- app/mailers/invitations_mailer.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/mailers/invitations_mailer.rb b/app/mailers/invitations_mailer.rb index aa4e294..21de21e 100644 --- a/app/mailers/invitations_mailer.rb +++ b/app/mailers/invitations_mailer.rb @@ -1,7 +1,7 @@ class InvitationsMailer < ApplicationMailer def received_invitation - profile = Profile.friendly.find(params[:profile_id]) - project_title = params[:project_title] - mail(subject: t('.subject'), to: profile.user.email) + @profile = Profile.friendly.find(params[:profile_id]) + @project_title = params[:project_title] + mail(subject: t('.subject'), to: @profile.user.email) end end