1class DeliverDebateOutcomeEmailJob < ApplicationJob
 
2  include EmailDelivery
 
3
  • DuplicateMethodCall - calls 'signature.petition' 2 times » reek
  • Complexity 2 » saikuro
4  def create_email
 
5    if signature.creator?
 
6      mailer.notify_creator_of_debate_outcome signature.petition, signature
 
7    else
 
8      mailer.notify_signer_of_debate_outcome signature.petition, signature
 
 9    end
 
10  end
 
11end