mirror of
https://github.com/discourse/discourse.git
synced 2024-11-29 00:04:11 +08:00
9a9ad9bda8
- Refactor model so it stores backfill query - Implement autobiographer - Remove sample badge - Correct featured badges to only include a badge once
15 lines
180 B
Ruby
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
|