instance method with_inline_jobs

Ruby on Rails 6.0.6

Since v5.2.8.1 Last seen in v6.0.6 Private — implementation detail, not part of the public API

Available in: v5.2.8.1 v6.0.6

Signature

with_inline_jobs()

No documentation comment.

Source
# File railties/lib/rails/engine.rb, line 670
      def with_inline_jobs
        queue_adapter = config.active_job.queue_adapter
        ActiveSupport.on_load(:active_job) do
          self.queue_adapter = :inline
        end
        yield
      ensure
        ActiveSupport.on_load(:active_job) do
          self.queue_adapter = queue_adapter
        end
      end

Defined in railties/lib/rails/engine.rb line 670 · View on GitHub · Improve this page · Find usages on GitHub

Defined in Rails::Engine

Type at least 2 characters to search.

Use the arrow keys to navigate results, Enter to open one, Escape to close.

Keyboard shortcuts

/
Focus search
⌘K / Ctrl-K
Command palette
?
This help
Esc
Close