1class NotifyCreatorOfSponsoredPetitionBeingStoppedJob < EmailJob
 
2  self.mailer = PetitionMailer
 
3  self.email = :notify_creator_of_sponsored_petition_being_stopped
 
4
 
5  queue_as :low_priority
 
6
  • Complexity 2 » saikuro
7  def perform(signature)
 
8    if Parliament.dissolved?
 
 9      mailer.send(email, signature).deliver_now
 
10    end
 
11  end
 
12end