Updated

app/jobs / notify_creator_that_parliament_is_dissolving_job.rb

A
12 lines of codes
1 methods
9.1 complexity/method
1 churn
9.06 complexity
0 duplications
class NotifyCreatorThatParliamentIsDissolvingJob < EmailJob
  1. NotifyCreatorThatParliamentIsDissolvingJob has no descriptive comment
self.mailer = PetitionMailer self.email = :notify_creator_of_closing_date_change queue_as :low_priority def perform(signature) if Parliament.dissolution_announced? mailer.send(email, signature).deliver_now end end end