提交 7ed38907 编写于 作者: F Florent Guilleux

Add documentation for ActiveRecord::QueryMethods#reverse_order [ci skip]

上级 a28eda16
......@@ -405,6 +405,9 @@ def extending!(*modules, &block)
self
end
# Reverse the existing order clause on the relation.
#
# User.order('name ASC').reverse_order # generated SQL has 'ORDER BY name DESC'
def reverse_order
spawn.reverse_order!
end
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册