mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
929a794a31
* Jobs generated now inherent from ApplicationJob * ApplicationJob inherents from ActiveJob::Base * Added entry to changelog Signed-off-by: Jeroen van Baarsen <jeroenvanbaarsen@gmail.com>
9 lines
176 B
Ruby
9 lines
176 B
Ruby
<% module_namespacing do -%>
|
|
class <%= class_name %>Job < ApplicationJob
|
|
queue_as :<%= options[:queue] %>
|
|
|
|
def perform(*args)
|
|
# Do something later
|
|
end
|
|
end
|
|
<% end -%>
|