discourse/lib/jobs/category_stats.rb
2013-08-14 21:39:40 +02:00

12 lines
No EOL
163 B
Ruby

module Jobs
class CategoryStats < Jobs::Scheduled
recurrence { daily.hour_of_day(4) }
def execute(args)
Category.update_stats
end
end
end