mirror of
https://github.com/plashchynski/crono.git
synced 2026-04-24 17:58:39 +02:00
Add Cli class, fix gem loading issues
This commit is contained in:
4
lib/periodicity/cli.rb
Normal file
4
lib/periodicity/cli.rb
Normal file
@@ -0,0 +1,4 @@
|
||||
module Periodicity
|
||||
class Cli
|
||||
end
|
||||
end
|
||||
@@ -1,7 +1,7 @@
|
||||
module Periodicity
|
||||
def self.hook_rails!
|
||||
ActiveSupport.on_load(:active_job) do
|
||||
extend Sidekiq::Extensions::ActiveJob
|
||||
extend Periodicity::Extensions::ActiveJob
|
||||
end
|
||||
end
|
||||
|
||||
@@ -9,5 +9,5 @@ module Periodicity
|
||||
initializer 'periodicity' do
|
||||
Periodicity.hook_rails!
|
||||
end
|
||||
end if defined?(::Rails)
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user