Skip to content
This repository
Browse code

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

  • Loading branch information...
commit d138921cece0c4923849ff61100fcce56e98e967 1 parent 490b52e
Mark Rushakoff authored May 27, 2012
2  activerecord/lib/active_record/relation/calculations.rb
@@ -118,7 +118,7 @@ def calculate(operation, column_name, options = {})
118 118
     #   Person.all.map(&:name)
119 119
     #
120 120
     # Pluck returns an <tt>Array</tt> of attribute values type-casted to match
121  
-    # the plucked column name, if it can be deduced. Plucking a SQL fragment
  121
+    # the plucked column name, if it can be deduced. Plucking an SQL fragment
122 122
     # returns String values by default.
123 123
     #
124 124
     # Examples:
2  guides/source/active_support_instrumentation.textile
Source Rendered
@@ -15,7 +15,7 @@ h3. Introduction to instrumentation
15 15
 
16 16
 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.
17 17
 
18  
-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.
  18
+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.
19 19
 
20 20
 You are even able to create your own events inside your application which you can later subscribe to.
21 21
 

0 notes on commit d138921

Please sign in to comment.
Something went wrong with that request. Please try again.