instance method
ordered_relation
Ruby on Rails 5.2.8.1
Since v5.2.8.1 PrivateSignature
ordered_relation()
No documentation comment.
Source
# File activerecord/lib/active_record/relation/finder_methods.rb, line 557
def ordered_relation
if order_values.empty? && primary_key
order(arel_attribute(primary_key).asc)
else
self
end
end
Defined in activerecord/lib/active_record/relation/finder_methods.rb line 557
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveRecord::FinderMethods