1class DebatedPetitionsJob < ApplicationJob
 
2  queue_as :high_priority
 
3
  • DuplicateMethodCall - calls 'date.to_date' 2 times » reek
  • UtilityFunction - doesn't depend on instance state (maybe move it to another class?) » reek
  • Complexity 1 » saikuro
4  def perform(date)
 
5    Petition.mark_petitions_as_debated!(date.to_date)
 
6    Archived::Petition.mark_petitions_as_debated!(date.to_date)
 
7  end
 
8end