discourse/app/jobs/scheduled/badge_grant.rb
Sam 9a9ad9bda8 FEATURE: Badge progress
- Refactor model so it stores backfill query
- Implement autobiographer
- Remove sample badge
- Correct featured badges to only include a badge once
2014-07-03 17:29:44 +10:00

15 lines
180 B
Ruby

module Jobs
class BadgeGrant < Jobs::Scheduled
every 1.day
def execute(args)
Badge.all.each do |b|
BadgeGranter.backfill(b)
end
end
end
end