提交 022eaddd 编写于 作者: B Brian Christian

don't impose primary key order if limit() is defined

上级 83f755ff
......@@ -550,7 +550,7 @@ def find_last(limit)
end
def ordered_relation
if order_values.empty? && primary_key
if order_values.empty? && primary_key && limit_value.blank?
order(arel_attribute(primary_key).asc)
else
self
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册