class StalenessNotificationJob < Struct.new(:article_ids)
  def perform
    articles = Article.find(article_ids)
    articles.each do |article|
      article.update_column(:last_notified_author_at, Date.today)
    end
    ArticleMailer.notify_author_of_staleness(articles).deliver
  end
end
class StalenessNotificationJob < Struct.new(:article_ids)
  def perform
    # Disable until preferences can be implemented.
    #
    # articles = Article.find(article_ids)
    # articles.each do |article|
    #   article.update_column(:last_notified_author_at, Date.today)
    # end
    # ArticleMailer.notify_author_of_staleness(articles).deliver
  end
end

Disable staleness emails until per user email preferences exist.
Disable staleness emails until per user email preferences exist.
