Updated

app/jobs / email_duplicate_signatures_email_job.rb

A
19 lines of codes
2 methods
5.5 complexity/method
8 churn
11.01 complexity
0 duplications
class EmailDuplicateSignaturesEmailJob < EmailJob
  1. EmailDuplicateSignaturesEmailJob has no descriptive comment
self.mailer = PetitionMailer self.email = :email_duplicate_signatures rescue_from(ActiveJob::DeserializationError) do |exception| Appsignal.send_exception exception end def perform(signature) mailer.send(email, signature).deliver_now Signature.increment_counter(:email_count, signature.id) end private def rate_limit @rate_limit ||= RateLimit.first_or_create! end end