mirror of
https://github.com/endofunky/sidetiq.git
synced 2022-11-09 13:53:30 -05:00
14 lines
262 B
Ruby
14 lines
262 B
Ruby
module Sidetiq
|
|
module Schedulable
|
|
module ClassMethods
|
|
def tiq(&block)
|
|
Sidetiq::Scheduler.instance.instance_eval(&block)
|
|
end
|
|
end
|
|
|
|
def self.included(klass)
|
|
klass.extend(Sidetiq::Schedulable::ClassMethods)
|
|
end
|
|
end
|
|
end
|
|
|