lib/bullet/active_job.rb in bullet-6.1.0 vs lib/bullet/active_job.rb in bullet-6.1.1

- old
+ new

@@ -1,9 +1,13 @@ # frozen_string_literal: true module Bullet module ActiveJob def self.included(base) - base.class_eval { around_perform { |_job, block| Bullet.profile { block.call } } } + base.class_eval do + around_perform do |_job, block| + Bullet.profile { block.call } + end + end end end end