Updated

app/jobs / update_petition_statistics_job.rb

A
7 lines of codes
1 methods
2.2 complexity/method
1 churn
2.2 complexity
0 duplications
class UpdatePetitionStatisticsJob < ApplicationJob
  1. UpdatePetitionStatisticsJob has no descriptive comment
queue_as :low_priority def perform(petition)
  1. UpdatePetitionStatisticsJob#perform doesn't depend on instance state (maybe move it to another class?)
petition.statistics.refresh! end end