From ba49be1c3ab2088e6a88d66a4b9a90f2d3dc5111 Mon Sep 17 00:00:00 2001 From: Abdelkader Boudih Date: Sun, 29 Jun 2014 15:59:38 +0000 Subject: [feature] ActiveJob generator --- lib/rails/generators/active_job/templates/job.rb | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 lib/rails/generators/active_job/templates/job.rb (limited to 'lib/rails/generators/active_job/templates/job.rb') 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 -- cgit v1.2.3