diff options
Diffstat (limited to 'lib/active_job/base.rb')
-rw-r--r-- | lib/active_job/base.rb | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/active_job/base.rb b/lib/active_job/base.rb index f2c76c1811..a404355026 100644 --- a/lib/active_job/base.rb +++ b/lib/active_job/base.rb @@ -1,4 +1,11 @@ +require 'active_job/queue_adapters/inline_queue' + module ActiveJob class Base + class << self + def enqueue(*args) + ActiveJob::QueueAdapters::InlineQueue.queue self, *args + end + end end end
\ No newline at end of file |