aboutsummaryrefslogtreecommitdiffstats
path: root/lib/active_job/base.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/active_job/base.rb')
-rw-r--r--lib/active_job/base.rb17
1 files changed, 4 insertions, 13 deletions
diff --git a/lib/active_job/base.rb b/lib/active_job/base.rb
index d3b0fcffa8..fe3d1677dd 100644
--- a/lib/active_job/base.rb
+++ b/lib/active_job/base.rb
@@ -1,22 +1,13 @@
require 'active_job/queue_adapter'
-require 'active_job/queue_adapters/inline_adapter'
-require 'active_support/core_ext/string/inflections'
+require 'active_job/queue_name'
module ActiveJob
class Base
extend QueueAdapter
+ extend QueueName
- cattr_accessor(:queue_base_name) { "active_jobs" }
- cattr_accessor(:queue_name) { queue_base_name }
-
- class << self
- def enqueue(*args)
- queue_adapter.queue self, *args
- end
-
- def queue_as(part_name)
- self.queue_name = "#{queue_base_name}_#{part_name}"
- end
+ def self.enqueue(*args)
+ queue_adapter.queue self, *args
end
end
end \ No newline at end of file