1class NotifyCreatorThatParliamentIsDissolvingJob < EmailJob |
|
2 self.mailer = PetitionMailer |
|
3 self.email = :notify_creator_of_closing_date_change |
|
5 queue_as :low_priority |
|
|
7 def perform(signature) |
8 if Parliament.dissolution_announced? |
|
9 mailer.send(email, signature).deliver_now
|
|
10 end |
|
11 end |
|
12end |