Sha256: efd50e8dc634bfc6d6b8b0cadb29ee64deaf6a1075e250b082f4907be57f1b2c

Contents?: true

Size: 237 Bytes

Versions: 23

Compression:

Stored size: 237 Bytes

Contents

# frozen_string_literal: true

module Bullet
  module ActiveJob
    def self.included(base)
      base.class_eval do
        around_perform do |_job, block|
          Bullet.profile { block.call }
        end
      end
    end
  end
end

Version data entries

23 entries across 23 versions & 1 rubygems

Version Path
bullet-6.1.3 lib/bullet/active_job.rb
bullet-6.1.2 lib/bullet/active_job.rb
bullet-6.1.1 lib/bullet/active_job.rb