method

conditional_executor

rails latest stable - Class: Rails::Command::RunnerCommand

Method not available on this version

This method is only available on newer versions. The first available version (v7.2.3) is shown here.

conditional_executor(enabled, **args, &block)
private

No documentation available.

# File railties/lib/rails/commands/runner/runner_command.rb, line 68
        def conditional_executor(enabled, **args, &block)
          if enabled
            Rails.application.executor.wrap(**args, &block)
          else
            yield
          end
        end