aboutsummaryrefslogtreecommitdiffstats
path: root/activejob/lib/rails
diff options
context:
space:
mode:
authorCristian Bica <cristian.bica@gmail.com>2014-08-15 23:35:06 +0300
committerCristian Bica <cristian.bica@gmail.com>2014-08-15 23:35:06 +0300
commitc2f1eca19409cbbe72bf89b2087b212341201aa1 (patch)
tree73769cde489786e21401f80a3c311fba7c98ced4 /activejob/lib/rails
parent94ae25ecd5635f7f97a2e53afa8e3f82c408435d (diff)
downloadrails-c2f1eca19409cbbe72bf89b2087b212341201aa1.tar.gz
rails-c2f1eca19409cbbe72bf89b2087b212341201aa1.tar.bz2
rails-c2f1eca19409cbbe72bf89b2087b212341201aa1.zip
Suggest the perform method can take arguments when generating an ActiveJob job
Diffstat (limited to 'activejob/lib/rails')
-rw-r--r--activejob/lib/rails/generators/job/templates/job.rb4
1 files changed, 2 insertions, 2 deletions
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 -%>