Updated

app/jobs / delete_petition_job.rb

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