aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEvan Farrar <evanfarrar@gmail.com>2008-07-28 11:15:58 -0500
committerEvan Farrar <evanfarrar@gmail.com>2008-07-28 11:15:58 -0500
commitbf4c3361a738d1e1468470e4d1097145fee64ae8 (patch)
treee41f441cebd3b6f5ce9a6bc051c8737d71109bdd
parent5abe63c419de22cb1b95334d8741a32cd175a0d7 (diff)
downloadrails-bf4c3361a738d1e1468470e4d1097145fee64ae8.tar.gz
rails-bf4c3361a738d1e1468470e4d1097145fee64ae8.tar.bz2
rails-bf4c3361a738d1e1468470e4d1097145fee64ae8.zip
The :conditions for calculations are not explained in the intro, there is no intro. This must have been copy/pasted from active_record/base.rb so link there instead.
-rw-r--r--activerecord/lib/active_record/calculations.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/activerecord/lib/active_record/calculations.rb b/activerecord/lib/active_record/calculations.rb
index 2ca1a0aaa3..34ffc9a5e5 100644
--- a/activerecord/lib/active_record/calculations.rb
+++ b/activerecord/lib/active_record/calculations.rb
@@ -14,7 +14,7 @@ module ActiveRecord
#
# The third approach, count using options, accepts an option hash as the only parameter. The options are:
#
- # * <tt>:conditions</tt>: An SQL fragment like "administrator = 1" or [ "user_name = ?", username ]. See conditions in the intro.
+ # * <tt>:conditions</tt>: An SQL fragment like "administrator = 1" or [ "user_name = ?", username ]. See conditions in the intro to ActiveRecord::Base.
# * <tt>:joins</tt>: Either an SQL fragment for additional joins like "LEFT JOIN comments ON comments.post_id = id" (rarely needed)
# or named associations in the same form used for the <tt>:include</tt> option, which will perform an INNER JOIN on the associated table(s).
# If the value is a string, then the records will be returned read-only since they will have attributes that do not correspond to the table's columns.
@@ -98,7 +98,7 @@ module ActiveRecord
# end
#
# Options:
- # * <tt>:conditions</tt> - An SQL fragment like "administrator = 1" or [ "user_name = ?", username ]. See conditions in the intro.
+ # * <tt>:conditions</tt> - An SQL fragment like "administrator = 1" or [ "user_name = ?", username ]. See conditions in the intro to ActiveRecord::Base.
# * <tt>:include</tt>: Eager loading, see Associations for details. Since calculations don't load anything, the purpose of this is to access fields on joined tables in your conditions, order, or group clauses.
# * <tt>:joins</tt> - An SQL fragment for additional joins like "LEFT JOIN comments ON comments.post_id = id". (Rarely needed).
# The records will be returned read-only since they will have attributes that do not correspond to the table's columns.