2014-07-01 19:46:28 -04:00
|
|
|
module Jobs
|
|
|
|
|
|
|
|
class BadgeGrant < Jobs::Scheduled
|
2014-07-11 00:17:01 -04:00
|
|
|
def self.run
|
|
|
|
self.new.execute(nil)
|
|
|
|
end
|
|
|
|
|
2014-07-01 19:46:28 -04:00
|
|
|
every 1.day
|
|
|
|
|
|
|
|
def execute(args)
|
2014-07-03 03:29:44 -04:00
|
|
|
Badge.all.each do |b|
|
|
|
|
BadgeGranter.backfill(b)
|
|
|
|
end
|
2014-07-01 19:46:28 -04:00
|
|
|
end
|
|
|
|
|
|
|
|
end
|
|
|
|
|
|
|
|
end
|