diff --git a/app/mailers/ban_mailer.rb b/app/mailers/ban_mailer.rb index f5c64880b..5f60d4e7e 100644 --- a/app/mailers/ban_mailer.rb +++ b/app/mailers/ban_mailer.rb @@ -3,8 +3,6 @@ def ban_mail(ban, ban_strikes, domain_name) @ban = ban @user = @ban.user @domain_name = domain_name - invoice = @ban.invoice - @linkpay_url = invoice.payment_link I18n.locale = @user.locale @past_due_invoices = I18n.locale == :en ? ban_strikes.ordinalize : ban_strikes diff --git a/app/views/ban_mailer/ban_mail.html.erb b/app/views/ban_mailer/ban_mail.html.erb index 3fc914d5b..a2935af2c 100644 --- a/app/views/ban_mailer/ban_mail.html.erb +++ b/app/views/ban_mailer/ban_mail.html.erb @@ -8,7 +8,6 @@

<%= t('.introduction', domain_name: @domain_name) %>

<%= t('.number_of_strikes', number: @past_due_invoices) %>

-

<%= t('.linkpay_html', linkpay_url: @linkpay_url) if @linkpay_url %>

<%= t('.footer_html') %>