mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Make one line example fit on one line [ci skip]
This commit is contained in:
parent
2013dede29
commit
2f96912229
1 changed files with 1 additions and 3 deletions
|
@ -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
|
||||
```
|
||||
|
||||
|
|
Loading…
Reference in a new issue