diff options
Diffstat (limited to 'activejob/lib/rails/generators/job/templates/job.rb')
-rw-r--r-- | activejob/lib/rails/generators/job/templates/job.rb | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/activejob/lib/rails/generators/job/templates/job.rb b/activejob/lib/rails/generators/job/templates/job.rb new file mode 100644 index 0000000000..462c71d917 --- /dev/null +++ b/activejob/lib/rails/generators/job/templates/job.rb @@ -0,0 +1,9 @@ +<% module_namespacing do -%> +class <%= class_name %>Job < ActiveJob::Base + queue_as :<%= options[:queue] %> + + def perform(*args) + # Do something later + end +end +<% end -%> |