aboutsummaryrefslogtreecommitdiffstats
path: root/guides
diff options
context:
space:
mode:
authorShota Iguchi <shota-iguchi@cookpad.com>2018-11-19 15:59:14 +0900
committerShota Iguchi <shota-iguchi@cookpad.com>2018-11-19 15:59:56 +0900
commit97412e08a65bbc3a32aa5f71e9e2121c2420fa34 (patch)
treef505e23a63632339bd4f32a709ff77d408c286bb /guides
parent2201197961b3aa1e3fc8033760a559def8da77e8 (diff)
downloadrails-97412e08a65bbc3a32aa5f71e9e2121c2420fa34.tar.gz
rails-97412e08a65bbc3a32aa5f71e9e2121c2420fa34.tar.bz2
rails-97412e08a65bbc3a32aa5f71e9e2121c2420fa34.zip
[ci skip] Update active_job_basics.md
ApplicationJob should be inherits ActiveJob::Base
Diffstat (limited to 'guides')
-rw-r--r--guides/source/active_job_basics.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/guides/source/active_job_basics.md b/guides/source/active_job_basics.md
index 4dc69ef911..39239852ca 100644
--- a/guides/source/active_job_basics.md
+++ b/guides/source/active_job_basics.md
@@ -289,7 +289,7 @@ style if the code inside your block is so short that it fits in a single line.
For example, you could send metrics for every job enqueued:
```ruby
-class ApplicationJob
+class ApplicationJob < ActiveJob::Base
before_enqueue { |job| $statsd.increment "#{job.class.name.underscore}.enqueue" }
end
```