method

ordered_relation

Importance_0
v7.1.3.4 - Show latest stable - 0 notes - Class: ActiveRecord::FinderMethods
ordered_relation() private

No documentation

This method has no description. You can help the Ruby on Rails community by adding new notes.

Hide source
# File activerecord/lib/active_record/relation/finder_methods.rb, line 626
      def ordered_relation
        if order_values.empty? && (implicit_order_column || !query_constraints_list.nil? || primary_key)
          order(_order_columns.map { |column| table[column].asc })
        else
          self
        end
      end
Register or log in to add new notes.