1
0
Fork 0
mirror of https://github.com/endofunky/sidetiq.git synced 2022-11-09 13:53:30 -05:00
endofunky--sidetiq/lib/sidetiq/class_methods.rb
2013-01-31 17:42:19 +00:00

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