demarches-normaliennes/app/jobs/cron/update_stats_job.rb

8 lines
141 B
Ruby
Raw Permalink Normal View History

class Cron::UpdateStatsJob < Cron::CronJob
self.schedule_expression = "every 1 hour"
def perform(*args)
Stat.update_stats
end
end