Updated

app/jobs / notify_creator_of_validated_petition_being_stopped_job.rb

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