Sha256: a9bef29ef3e751c15191bde220db2aa3e409177145c42ef805365afdce714d60

Contents?: true

Size: 272 Bytes

Versions: 3

Compression:

Stored size: 272 Bytes

Contents

module ActiveJob
  module QueueAdapters
    class GoodJobAdapter < GoodJob::Adapter
      def initialize
        if Rails.env.development? || Rails.env.test?
          super(inline: true)
        else
          super(inline: false)
        end
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
good_job-0.7.0 lib/active_job/queue_adapters/good_job_adapter.rb
good_job-0.6.0 lib/active_job/queue_adapters/good_job_adapter.rb
good_job-0.5.0 lib/active_job/queue_adapters/good_job_adapter.rb