@@ -60,26 +60,26 @@ def truncate(name)
60
60
# Person.distinct.count(:age)
61
61
# # => counts the number of different age values
62
62
#
63
- # If # count is used with {Relation#group}[rdoc-ref:QueryMethods#group],
63
+ # If + count+ is used with {Relation#group}[rdoc-ref:QueryMethods#group],
64
64
# it returns a Hash whose keys represent the aggregated column,
65
65
# and the values are the respective amounts:
66
66
#
67
67
# Person.group(:city).count
68
68
# # => { 'Rome' => 5, 'Paris' => 3 }
69
69
#
70
- # If # count is used with {Relation#group}[rdoc-ref:QueryMethods#group] for multiple columns, it returns a Hash whose
70
+ # If + count+ is used with {Relation#group}[rdoc-ref:QueryMethods#group] for multiple columns, it returns a Hash whose
71
71
# keys are an array containing the individual values of each column and the value
72
- # of each key would be the # count.
72
+ # of each key would be the count.
73
73
#
74
74
# Article.group(:status, :category).count
75
75
# # => {["draft", "business"]=>10, ["draft", "technology"]=>4, ["published", "technology"]=>2}
76
76
#
77
- # If # count is used with {Relation#select}[rdoc-ref:QueryMethods#select], it will count the selected columns:
77
+ # If + count+ is used with {Relation#select}[rdoc-ref:QueryMethods#select], it will count the selected columns:
78
78
#
79
79
# Person.select(:age).count
80
80
# # => counts the number of different age values
81
81
#
82
- # Note: not all valid {Relation#select}[rdoc-ref:QueryMethods#select] expressions are valid # count expressions. The specifics differ
82
+ # Note: not all valid {Relation#select}[rdoc-ref:QueryMethods#select] expressions are valid + count+ expressions. The specifics differ
83
83
# between databases. In invalid cases, an error from the database is thrown.
84
84
#
85
85
# When given a block, loads all records in the relation, if the relation
0 commit comments