f6ebfe0e47
Use a job instead of a lot of reloads
8 lines
191 B
Ruby
8 lines
191 B
Ruby
class DossierUpdateSearchTermsJob < ApplicationJob
|
|
discard_on ActiveRecord::RecordNotFound
|
|
|
|
def perform(dossier)
|
|
dossier.update_search_terms
|
|
dossier.save!(touch: false)
|
|
end
|
|
end
|