diff --git a/Rakefile b/Rakefile index 6104634..6365b91 100644 --- a/Rakefile +++ b/Rakefile @@ -2,7 +2,6 @@ require 'bundler' Bundler::GemHelper.install_tasks require 'rspec/core/rake_task' - RSpec::Core::RakeTask.new('spec') task default: :spec diff --git a/lib/periodicity/extensions/active_job.rb b/lib/periodicity/extensions/active_job.rb index 5def355..81a2835 100644 --- a/lib/periodicity/extensions/active_job.rb +++ b/lib/periodicity/extensions/active_job.rb @@ -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