From afb3d4f9e5820cb8f5cd4502e1d0525044ac6ef2 Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Mon, 19 May 2014 12:46:27 +0200 Subject: Move to instance method and document usage --- test/jobs/gid_job.rb | 2 +- test/jobs/hello_job.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'test/jobs') diff --git a/test/jobs/gid_job.rb b/test/jobs/gid_job.rb index c1bfbb2655..c69e38d3cc 100644 --- a/test/jobs/gid_job.rb +++ b/test/jobs/gid_job.rb @@ -1,5 +1,5 @@ class GidJob < ActiveJob::Base - def self.perform(person) + def perform(person) $BUFFER << "Person with ID: #{person.id}" end end diff --git a/test/jobs/hello_job.rb b/test/jobs/hello_job.rb index d0e65f9674..25441dd0c8 100644 --- a/test/jobs/hello_job.rb +++ b/test/jobs/hello_job.rb @@ -1,5 +1,5 @@ class HelloJob < ActiveJob::Base - def self.perform(greeter = "David") + def perform(greeter = "David") $BUFFER << "#{greeter} says hello" end end -- cgit v1.2.3