demarches-normaliennes/app/jobs/dossier_update_search_terms_job.rb

9 lines
191 B
Ruby
Raw Normal View History

class DossierUpdateSearchTermsJob < ApplicationJob
discard_on ActiveRecord::RecordNotFound
def perform(dossier)
dossier.update_search_terms
dossier.save!(touch: false)
end
end