instance method
aggregate_column
Ruby on Rails 8.1.2
Since v3.0.20Signature
aggregate_column(column_name)
No documentation comment.
Parameters
-
column_namereq
Source
# File activerecord/lib/active_record/relation/calculations.rb, line 418
def aggregate_column(column_name)
case column_name
when Arel::Expressions
column_name
when :all
Arel.star
else
arel_column(column_name.to_s)
end
end
Defined in activerecord/lib/active_record/relation/calculations.rb line 418
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveRecord::Calculations