mirror of
https://github.com/plashchynski/crono.git
synced 2026-05-06 07:54:02 +02:00
ActiveJob is a module
This commit is contained in:
1
Rakefile
1
Rakefile
@@ -2,7 +2,6 @@ require 'bundler'
|
||||
Bundler::GemHelper.install_tasks
|
||||
|
||||
require 'rspec/core/rake_task'
|
||||
|
||||
RSpec::Core::RakeTask.new('spec')
|
||||
|
||||
task default: :spec
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
module Periodicity
|
||||
module Extensions
|
||||
class ActiveJob
|
||||
def self.perform_every(period, *args)
|
||||
module ActiveJob
|
||||
def perform_every(period, *args)
|
||||
@period = Period.new(period, *args)
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user