From 2f96912229b430ff2c44506b962164df1b66088a Mon Sep 17 00:00:00 2001 From: Bart de Water Date: Wed, 9 Aug 2017 15:31:02 -0400 Subject: [PATCH] Make one line example fit on one line [ci skip] --- guides/source/active_job_basics.md | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/guides/source/active_job_basics.md b/guides/source/active_job_basics.md index bde234bf84..2606bfe280 100644 --- a/guides/source/active_job_basics.md +++ b/guides/source/active_job_basics.md @@ -289,9 +289,7 @@ For example, you could send metrics for every job enqueued: ```ruby class ApplicationJob - before_enqueue do |job| - $statsd.increment "#{job.name.underscore}.enqueue" - end + before_enqueue { |job| $statsd.increment "#{job.name.underscore}.enqueue" } end ```