From 14669beba5ed9856d6267d9e95697f1b26b19595 Mon Sep 17 00:00:00 2001 From: chiu Date: Fri, 28 Aug 2020 17:12:28 +0800 Subject: [PATCH] fix error --- lib/tasks/e_paper_tasks.rake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/tasks/e_paper_tasks.rake b/lib/tasks/e_paper_tasks.rake index 0328fb5..42d0a84 100644 --- a/lib/tasks/e_paper_tasks.rake +++ b/lib/tasks/e_paper_tasks.rake @@ -8,7 +8,7 @@ namespace :epaper do if !paper.nil? subscribers = EPaperSubscriber.where(:language.in=>paper.language_to_send,:email.nin=>['',nil]) subscribers.update_all(:last_paper_sent => paper.id.to_s) - emails = subscribers.collect(:email) + emails = subscribers.collect(&:email) site = Site.first email_limit_reciever = site[:site_settings][:email_limit_reciever].to_i rescue 0 mail_limit = email_limit_reciever==0 ? 25 : email_limit_reciever