1class NotifyCreatorThatModerationIsDelayedJob < EmailJob
 
2  self.mailer = PetitionMailer
 
3  self.email = :notify_creator_that_moderation_is_delayed
 
4
 
5  queue_as :low_priority
 
6
  • Complexity 1 » saikuro
7  def perform(signature, subject, body)
 
8    mailer.send(email, signature, subject, body).deliver_now
 
 9  end
 
10end