add skeleton

This commit is contained in:
Dzmitry Plashchynski
2015-02-28 21:32:44 +02:00
parent 99cceccdf4
commit cfe3057e57
4 changed files with 30 additions and 2 deletions
+13
View File
@@ -0,0 +1,13 @@
module Periodicity
def self.hook_rails!
ActiveSupport.on_load(:active_job) do
extend Sidekiq::Extensions::ActiveJob
end
end
class Rails < ::Rails::Engine
initializer 'periodicity' do
Periodicity.hook_rails!
end
end if defined?(::Rails)
end