lib/active_record/hierarchical_query/orderings.rb
# Returns order expression to be inserted into SELECT clauses of both
# non-recursive and recursive terms.
#
# @return [Arel::Nodes::Node] order expression
Returns order expression to be inserted into SELECT clauses of both
non-recursive and recursive terms.
Returns order expression to be inserted into SELECT clauses of both non - recursive and recursive terms .
def row_number_expression
        if raw_ordering?
          order_attribute
        else
          Arel.sql("ROW_NUMBER() OVER (ORDER BY #{map(&:to_sql).join(', ')})")
        end
      end
def row_number_expression if raw_ordering? order_attribute else Arel . sql ( "ROW_NUMBER() OVER (ORDER BY #{map(&:to_sql).join(', ')})" ) end end
Returns order expression to be inserted into SELECT clauses of both
non-recursive and recursive terms.
Returns order expression to be inserted into SELECT clauses of both non - recursive and recursive terms .
None
Arel::Nodes::Node