mirror of
https://github.com/plashchynski/crono.git
synced 2026-04-22 16:58:42 +02:00
10 lines
197 B
Ruby
10 lines
197 B
Ruby
module Periodicity
|
|
module Extensions
|
|
module ActiveJob
|
|
def perform_every(period, *args)
|
|
Config.instance.schedule += [self, Period.new(period, *args)]
|
|
end
|
|
end
|
|
end
|
|
end
|