Updated

app/jobs / debated_petitions_job.rb

A
8 lines of codes
1 methods
4.4 complexity/method
5 churn
4.4 complexity
0 duplications
class DebatedPetitionsJob < ApplicationJob
  1. DebatedPetitionsJob has no descriptive comment
queue_as :high_priority def perform(date)
  1. DebatedPetitionsJob#perform doesn't depend on instance state (maybe move it to another class?)
Petition.mark_petitions_as_debated!(date.to_date)
  1. DebatedPetitionsJob#perform calls 'date.to_date' 2 times Locations: 0 1
Archived::Petition.mark_petitions_as_debated!(date.to_date)
  1. DebatedPetitionsJob#perform calls 'date.to_date' 2 times Locations: 0 1
end end