From c2f1eca19409cbbe72bf89b2087b212341201aa1 Mon Sep 17 00:00:00 2001 From: Cristian Bica Date: Fri, 15 Aug 2014 23:35:06 +0300 Subject: Suggest the perform method can take arguments when generating an ActiveJob job --- activejob/lib/rails/generators/job/templates/job.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'activejob/lib/rails') diff --git a/activejob/lib/rails/generators/job/templates/job.rb b/activejob/lib/rails/generators/job/templates/job.rb index 6a21616d30..462c71d917 100644 --- a/activejob/lib/rails/generators/job/templates/job.rb +++ b/activejob/lib/rails/generators/job/templates/job.rb @@ -2,8 +2,8 @@ class <%= class_name %>Job < ActiveJob::Base queue_as :<%= options[:queue] %> - def perform + def perform(*args) # Do something later end end -<% end -%> \ No newline at end of file +<% end -%> -- cgit v1.2.3