From 6bf168e627d437737ed58a39faa87fb66a22bfdd Mon Sep 17 00:00:00 2001 From: Dzmitry Plashchynski Date: Mon, 2 Mar 2015 01:08:18 +0200 Subject: [PATCH] ActiveJob is a module --- Rakefile | 1 - lib/periodicity/extensions/active_job.rb | 4 ++-- 2 files changed, 2 insertions(+), 3 deletions(-) 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