From 2f579120b16f2bfa0fffe8943341fd639804ff23 Mon Sep 17 00:00:00 2001 From: Phil Lee Date: Fri, 3 Feb 2023 15:51:38 +0000 Subject: [PATCH] refactor local variable name --- app/mailers/bulk_upload_mailer.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/mailers/bulk_upload_mailer.rb b/app/mailers/bulk_upload_mailer.rb index 9b31f7e32..59d03ce9b 100644 --- a/app/mailers/bulk_upload_mailer.rb +++ b/app/mailers/bulk_upload_mailer.rb @@ -84,13 +84,13 @@ class BulkUploadMailer < NotifyMailer end def send_bulk_upload_with_errors_mail(bulk_upload:) - n = bulk_upload.logs.where.not(status: %w[completed]).count + count = bulk_upload.logs.where.not(status: %w[completed]).count - n_logs = pluralize(n, "log") + n_logs = pluralize(count, "log") title = "We found #{n_logs} with errors" - error_description = "We created logs from your #{bulk_upload.year_combo} #{bulk_upload.log_type} data. There was a problem with #{n} of the logs. Click the below link to fix these logs." + error_description = "We created logs from your #{bulk_upload.year_combo} #{bulk_upload.log_type} data. There was a problem with #{count} of the logs. Click the below link to fix these logs." send_email( bulk_upload.user.email,