diff options
author | Andrew White <pixeltrix@users.noreply.github.com> | 2016-09-05 17:30:31 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-09-05 17:30:31 +0100 |
commit | 1e282dff07eaaede360512be57a831382236f29c (patch) | |
tree | 70498a338b50da20f2a7437bb7cc867cc25256a3 /activejob/test/jobs | |
parent | 51c53e19bfbc34c2b3b748786d8b5cc268de1c51 (diff) | |
parent | 0b2197774ccca2a15b01212053143114ee058038 (diff) | |
download | rails-1e282dff07eaaede360512be57a831382236f29c.tar.gz rails-1e282dff07eaaede360512be57a831382236f29c.tar.bz2 rails-1e282dff07eaaede360512be57a831382236f29c.zip |
Merge pull request #26391 from y-yagi/use_descendants_to_get_all_subclasses
use `descendants` to get class that inherited `ActiveJob::Base`
Diffstat (limited to 'activejob/test/jobs')
-rw-r--r-- | activejob/test/jobs/application_job.rb | 4 | ||||
-rw-r--r-- | activejob/test/jobs/inherited_job.rb | 5 |
2 files changed, 9 insertions, 0 deletions
diff --git a/activejob/test/jobs/application_job.rb b/activejob/test/jobs/application_job.rb new file mode 100644 index 0000000000..4a78b890ec --- /dev/null +++ b/activejob/test/jobs/application_job.rb @@ -0,0 +1,4 @@ +require_relative "../support/job_buffer" + +class ApplicationJob < ActiveJob::Base +end diff --git a/activejob/test/jobs/inherited_job.rb b/activejob/test/jobs/inherited_job.rb new file mode 100644 index 0000000000..60fca66f88 --- /dev/null +++ b/activejob/test/jobs/inherited_job.rb @@ -0,0 +1,5 @@ +require_relative "application_job" + +class InheritedJob < ApplicationJob + self.queue_adapter = :inline +end |