diff --git a/lib/tasks/e_paper_tasks.rake b/lib/tasks/e_paper_tasks.rake index 533be7c..be80b6a 100644 --- a/lib/tasks/e_paper_tasks.rake +++ b/lib/tasks/e_paper_tasks.rake @@ -21,7 +21,7 @@ namespace :epaper do emails += paper.other_emails_ids emails.uniq! emails_valid = emails.select do |email| - tmp = (email_format=~email) + tmp = (email_format=~email.to_s) tmp==0 ? true : false end emails_invalid = emails - emails_valid