method

ordered_relation

Importance_0
v6.0.0 - 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 544
      def ordered_relation
        if order_values.empty? && (implicit_order_column || primary_key)
          order(arel_attribute(implicit_order_column || primary_key).asc)
        else
          self
        end
      end
Register or log in to add new notes.