aboutsummaryrefslogtreecommitdiffstats
path: root/test/jobs/hello_job.rb
diff options
context:
space:
mode:
authorDavid Heinemeier Hansson <david@loudthinking.com>2014-05-19 12:46:27 +0200
committerDavid Heinemeier Hansson <david@loudthinking.com>2014-05-19 12:46:27 +0200
commitafb3d4f9e5820cb8f5cd4502e1d0525044ac6ef2 (patch)
tree11acb4b4c1094c0dfb24f84da8cb68e10e3f9d8b /test/jobs/hello_job.rb
parentf3a9ad70570d52fa01d847d86f34ec2119d4631b (diff)
downloadrails-afb3d4f9e5820cb8f5cd4502e1d0525044ac6ef2.tar.gz
rails-afb3d4f9e5820cb8f5cd4502e1d0525044ac6ef2.tar.bz2
rails-afb3d4f9e5820cb8f5cd4502e1d0525044ac6ef2.zip
Move to instance method and document usage
Diffstat (limited to 'test/jobs/hello_job.rb')
-rw-r--r--test/jobs/hello_job.rb2
1 files changed, 1 insertions, 1 deletions
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