From eb9f42b2915f1bbe9b52139e1bc33644b3d64012 Mon Sep 17 00:00:00 2001 From: "yuuji.yaginuma" Date: Mon, 8 Jun 2015 08:55:01 +0900 Subject: [PATCH] add `instantiation.active_record` hook to instrumentation guide [ci skip] the hook was added in 2a0d97bc89fc230241453cbbf55621309e1f3ac6 --- guides/source/active_support_instrumentation.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/guides/source/active_support_instrumentation.md b/guides/source/active_support_instrumentation.md index 1b14bedfbf..373dbbb9aa 100644 --- a/guides/source/active_support_instrumentation.md +++ b/guides/source/active_support_instrumentation.md @@ -252,6 +252,20 @@ INFO. The adapters will add their own data as well. | `:name` | Record's class | | `:connection_id` | `self.object_id` | +### instantiation.active_record + +| Key | Value | +| ---------------- | ----------------------------------------- | +| `:record_count` | Number of records that instantiated | +| `:class_name` | Record's class | + +```ruby +{ + record_count: 1, + class_name: "User" +} +``` + Action Mailer -------------