add config class and schedule

This commit is contained in:
Dzmitry Plashchynski
2015-03-02 20:28:13 +02:00
parent 6bf168e627
commit 283dd446a3
7 changed files with 41 additions and 2 deletions
+1 -1
View File
@@ -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