diff options
author | Abdelkader Boudih <terminale@gmail.com> | 2014-06-29 15:59:38 +0000 |
---|---|---|
committer | Abdelkader Boudih <terminale@gmail.com> | 2014-06-30 15:40:46 +0000 |
commit | ba49be1c3ab2088e6a88d66a4b9a90f2d3dc5111 (patch) | |
tree | 49222f98128e754d8a7cd2b15b2d80349d60157d /lib/rails/generators/active_job/templates/job.rb | |
parent | bab64e62ec6c609ece50f5ad7e5c16e56846b263 (diff) | |
download | rails-ba49be1c3ab2088e6a88d66a4b9a90f2d3dc5111.tar.gz rails-ba49be1c3ab2088e6a88d66a4b9a90f2d3dc5111.tar.bz2 rails-ba49be1c3ab2088e6a88d66a4b9a90f2d3dc5111.zip |
[feature] ActiveJob generator
Diffstat (limited to 'lib/rails/generators/active_job/templates/job.rb')
-rw-r--r-- | lib/rails/generators/active_job/templates/job.rb | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/rails/generators/active_job/templates/job.rb b/lib/rails/generators/active_job/templates/job.rb new file mode 100644 index 0000000000..6a21616d30 --- /dev/null +++ b/lib/rails/generators/active_job/templates/job.rb @@ -0,0 +1,9 @@ +<% module_namespacing do -%> +class <%= class_name %>Job < ActiveJob::Base + queue_as :<%= options[:queue] %> + + def perform + # Do something later + end +end +<% end -%>
\ No newline at end of file |