Sha256: efd50e8dc634bfc6d6b8b0cadb29ee64deaf6a1075e250b082f4907be57f1b2c

Contents?: true

Size: 237 Bytes

Versions: 22

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

22 entries across 22 versions & 1 rubygems

Version Path
bullet-8.0.0 lib/bullet/active_job.rb
bullet-7.2.0 lib/bullet/active_job.rb
bullet-7.1.6 lib/bullet/active_job.rb
bullet-7.1.5 lib/bullet/active_job.rb
bullet-7.1.4 lib/bullet/active_job.rb
bullet-7.1.3 lib/bullet/active_job.rb
bullet-7.1.2 lib/bullet/active_job.rb
bullet-7.1.1 lib/bullet/active_job.rb
bullet-7.1.0 lib/bullet/active_job.rb
bullet-7.0.7 lib/bullet/active_job.rb
bullet-7.0.6 lib/bullet/active_job.rb
bullet-7.0.5 lib/bullet/active_job.rb
bullet-7.0.4 lib/bullet/active_job.rb
bullet-7.0.3 lib/bullet/active_job.rb
bullet-7.0.2 lib/bullet/active_job.rb
bullet-7.0.1 lib/bullet/active_job.rb
bullet-7.0.0 lib/bullet/active_job.rb
bullet-6.1.5 lib/bullet/active_job.rb
bullet-6.1.4 lib/bullet/active_job.rb
bullet-6.1.3 lib/bullet/active_job.rb