demarches-normaliennes/app/jobs/declarative_procedures_job.rb

8 lines
154 B
Ruby
Raw Normal View History

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