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

- old
+ new

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