aboutsummaryrefslogtreecommitdiffstats
path: root/activejob/lib/rails/generators/job/templates
diff options
context:
space:
mode:
authorJeroen van Baarsen <jeroenvanbaarsen@gmail.com>2015-02-22 21:52:58 +0100
committerJeroen van Baarsen <jeroenvanbaarsen@gmail.com>2015-03-23 22:37:11 +0100
commit929a794a317666e4d29954e4f071c1dd57482aa7 (patch)
tree44804aa0548b42c7942b5613826cd4a1c05d7444 /activejob/lib/rails/generators/job/templates
parentb6c038b600487b1adcf8f5e69ba70a992b07e195 (diff)
downloadrails-929a794a317666e4d29954e4f071c1dd57482aa7.tar.gz
rails-929a794a317666e4d29954e4f071c1dd57482aa7.tar.bz2
rails-929a794a317666e4d29954e4f071c1dd57482aa7.zip
Add explicit base class for ActiveJob jobs
* Jobs generated now inherent from ApplicationJob * ApplicationJob inherents from ActiveJob::Base * Added entry to changelog Signed-off-by: Jeroen van Baarsen <jeroenvanbaarsen@gmail.com>
Diffstat (limited to 'activejob/lib/rails/generators/job/templates')
-rw-r--r--activejob/lib/rails/generators/job/templates/job.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activejob/lib/rails/generators/job/templates/job.rb b/activejob/lib/rails/generators/job/templates/job.rb
index 462c71d917..4ad2914a45 100644
--- a/activejob/lib/rails/generators/job/templates/job.rb
+++ b/activejob/lib/rails/generators/job/templates/job.rb
@@ -1,5 +1,5 @@
<% module_namespacing do -%>
-class <%= class_name %>Job < ActiveJob::Base
+class <%= class_name %>Job < ApplicationJob
queue_as :<%= options[:queue] %>
def perform(*args)