discourse/app/jobs/scheduled/category_stats.rb

12 lines
163 B
Ruby
Raw Normal View History

2013-02-05 14:16:51 -05:00
module Jobs
2013-08-07 13:25:05 -04:00
class CategoryStats < Jobs::Scheduled
recurrence { daily.hour_of_day(4) }
2013-02-05 14:16:51 -05:00
def execute(args)
Category.update_stats
end
end
end