app/mailers/iugu_mailer.rb in iugusdk-1.0.0.alpha.20 vs app/mailers/iugu_mailer.rb in iugusdk-1.0.0.alpha.21
- old
+ new
@@ -12,9 +12,10 @@
super(record)
set_default_locale
end
def invitation(user_invitation)
+ user = User.find(user_invitation.invited_by)
set_locale(user)
@user_invitation = user_invitation
mail(to: @user_invitation.email, :subject => I18n.t("user_invitation")) do |format|
format.html { render "iugu/mailer/invitation" }
end