mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Suggest the perform method can take arguments when generating an ActiveJob job
This commit is contained in:
parent
94ae25ecd5
commit
c2f1eca194
1 changed files with 2 additions and 2 deletions
|
@ -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 -%>
|
||||
<% end -%>
|
||||
|
|
Loading…
Reference in a new issue