7 lines
188 B
Ruby
7 lines
188 B
Ruby
class Cron::DeclarativeProceduresJob < Cron::CronJob
|
|
self.schedule_expression = "every 1 minute"
|
|
|
|
def perform(*args)
|
|
Procedure.declarative.find_each(&:process_dossiers!)
|
|
end
|
|
end
|