aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRafael Mendonça França <rafaelmfranca@gmail.com>2015-04-06 16:52:04 -0300
committerRafael Mendonça França <rafaelmfranca@gmail.com>2015-04-06 16:52:04 -0300
commitdbb75218b56c7bc3ac8f3b26f0c8ea8e944fb10c (patch)
treed75a95dfd3e6880e0792c0c4456850f1167fac17
parent4968eeb3864d20ff9cd1a37fd2ca281ec1e55f89 (diff)
parent7f178c83def5c2b2c9a93d4ef08b64e4d55a90c3 (diff)
downloadrails-dbb75218b56c7bc3ac8f3b26f0c8ea8e944fb10c.tar.gz
rails-dbb75218b56c7bc3ac8f3b26f0c8ea8e944fb10c.tar.bz2
rails-dbb75218b56c7bc3ac8f3b26f0c8ea8e944fb10c.zip
Merge pull request #19671 from nishantmodak/patch-1
Fix URL rails-framework-hooks
-rw-r--r--guides/source/active_support_instrumentation.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/guides/source/active_support_instrumentation.md b/guides/source/active_support_instrumentation.md
index 352da43b5f..1b14bedfbf 100644
--- a/guides/source/active_support_instrumentation.md
+++ b/guides/source/active_support_instrumentation.md
@@ -19,7 +19,7 @@ After reading this guide, you will know:
Introduction to instrumentation
-------------------------------
-The instrumentation API provided by Active Support allows developers to provide hooks which other developers may hook into. There are several of these within the Rails framework, as described below in (TODO: link to section detailing each hook point). With this API, developers can choose to be notified when certain events occur inside their application or another piece of Ruby code.
+The instrumentation API provided by Active Support allows developers to provide hooks which other developers may hook into. There are several of these within the [Rails framework](#rails-framework-hooks). With this API, developers can choose to be notified when certain events occur inside their application or another piece of Ruby code.
For example, there is a hook provided within Active Record that is called every time Active Record uses an SQL query on a database. This hook could be **subscribed** to, and used to track the number of queries during a certain action. There's another hook around the processing of an action of a controller. This could be used, for instance, to track how long a specific action has taken.