Module: Bullet::ActiveJob
- Defined in:
- lib/bullet/active_job.rb
Class Method Summary collapse
Class Method Details
.included(base) ⇒ Object
5 6 7 8 9 10 11 |
# File 'lib/bullet/active_job.rb', line 5 def self.included(base) base.class_eval do around_perform do |_job, block| Bullet.profile { block.call } end end end |