mirror of
https://github.com/plashchynski/crono.git
synced 2026-07-03 03:21:33 +02:00
add config class and schedule
This commit is contained in:
@@ -2,7 +2,7 @@ module Periodicity
|
||||
module Extensions
|
||||
module ActiveJob
|
||||
def perform_every(period, *args)
|
||||
@period = Period.new(period, *args)
|
||||
Config.instance.schedule += [self, Period.new(period, *args)]
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user