I would like to send a digest of what have been changed in a day to
some admins. However, some day there won't be any change. How do I not
send emails on such cases?
Currently, my mailer is called Postoffice. I call
Postoffice.deliver_daily_digest every night by a cron job.
Inside of daily_digest method, I have queries to figure out what have
been changed. I don't want to repeat these queries in my rake task.
Any suggestions would be appreciated.