method
order_column
v8.1.1 -
Show latest stable
- Class:
ActiveRecord::QueryMethods
order_column(field)private
No documentation available.
# File activerecord/lib/active_record/relation/query_methods.rb, line 2164
def order_column(field)
arel_column(field) do |attr_name|
if attr_name == "count" && !group_values.empty?
table[attr_name]
else
Arel.sql(model.adapter_class.quote_table_name(attr_name), retryable: true)
end
end
end