1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

"a sql" -> "an SQL" per API documentation guidelines

This commit is contained in:
Mark Rushakoff 2012-05-27 08:25:00 -07:00
parent 490b52ee8e
commit d138921cec
2 changed files with 2 additions and 2 deletions

View file

@ -118,7 +118,7 @@ module ActiveRecord
# Person.all.map(&:name) # Person.all.map(&:name)
# #
# Pluck returns an <tt>Array</tt> of attribute values type-casted to match # Pluck returns an <tt>Array</tt> of attribute values type-casted to match
# the plucked column name, if it can be deduced. Plucking a SQL fragment # the plucked column name, if it can be deduced. Plucking an SQL fragment
# returns String values by default. # returns String values by default.
# #
# Examples: # Examples:

View file

@ -15,7 +15,7 @@ h3. Introduction to instrumentation
The instrumentation API provided by ActiveSupport 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 ActiveSupport 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.
For example, there is a hook provided within Active Record that is called every time Active Record uses a 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. 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.
You are even able to create your own events inside your application which you can later subscribe to. You are even able to create your own events inside your application which you can later subscribe to.