class NotifyCreatorsThatModerationIsDelayedJob < ApplicationJob - NotifyCreatorsThatModerationIsDelayedJob has no descriptive comment
queue_as :high_priority
def perform(subject, body)
petitions.find_each do |petition|
NotifyCreatorThatModerationIsDelayedJob.perform_later(petition.creator, subject, body)
end
end
private
def petitions - NotifyCreatorsThatModerationIsDelayedJob#petitions doesn't depend on instance state (maybe move it to another class?)
Petition.overdue_in_moderation
end
end