mirror of
https://github.com/plashchynski/crono.git
synced 2026-04-23 09:18:44 +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
|
Bundler::GemHelper.install_tasks
|
||||||
|
|
||||||
require 'rspec/core/rake_task'
|
require 'rspec/core/rake_task'
|
||||||
|
|
||||||
RSpec::Core::RakeTask.new('spec')
|
RSpec::Core::RakeTask.new('spec')
|
||||||
|
|
||||||
task default: :spec
|
task default: :spec
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
module Periodicity
|
module Periodicity
|
||||||
module Extensions
|
module Extensions
|
||||||
class ActiveJob
|
module ActiveJob
|
||||||
def self.perform_every(period, *args)
|
def perform_every(period, *args)
|
||||||
@period = Period.new(period, *args)
|
@period = Period.new(period, *args)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user