demarches-normaliennes/app/jobs/declarative_procedures_job.rb
2019-07-02 14:12:26 +02:00

7 lines
154 B
Ruby

class DeclarativeProceduresJob < ApplicationJob
queue_as :cron
def perform(*args)
Procedure.declarative.find_each(&:process_dossiers!)
end
end