aboutsummaryrefslogtreecommitdiffstats
path: root/activejob/lib/active_job
diff options
context:
space:
mode:
authorRafael França <rafaelmfranca@gmail.com>2018-11-23 17:08:40 -0500
committerGitHub <noreply@github.com>2018-11-23 17:08:40 -0500
commitf0330b620282b6c999679674ec54f7b2b9f83324 (patch)
tree4a14c61c63afd0a01e02f03c216e370541c702f8 /activejob/lib/active_job
parent34726ad8959079fea17a2f6ea7fc2bd4864255a6 (diff)
parentb517347be1e229554093b061bd3fd7dbf9017f6a (diff)
downloadrails-f0330b620282b6c999679674ec54f7b2b9f83324.tar.gz
rails-f0330b620282b6c999679674ec54f7b2b9f83324.tar.bz2
rails-f0330b620282b6c999679674ec54f7b2b9f83324.zip
Merge pull request #34376 from composerinteralia/default_queue_name
Allow using queue prefix with a default queue name
Diffstat (limited to 'activejob/lib/active_job')
-rw-r--r--activejob/lib/active_job/queue_name.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activejob/lib/active_job/queue_name.rb b/activejob/lib/active_job/queue_name.rb
index 9dc6bc7f2e..7bb1e35181 100644
--- a/activejob/lib/active_job/queue_name.rb
+++ b/activejob/lib/active_job/queue_name.rb
@@ -34,7 +34,7 @@ module ActiveJob
end
included do
- class_attribute :queue_name, instance_accessor: false, default: default_queue_name
+ class_attribute :queue_name, instance_accessor: false, default: -> { self.class.default_queue_name }
class_attribute :queue_name_delimiter, instance_accessor: false, default: "_"
end