Skip to content
代码片段 群组 项目
提交 ec4a0b45 编辑于 作者: Heinrich Lee Yu's avatar Heinrich Lee Yu 提交者: Alex Kalderimis
浏览文件

Support `#last` on relations with keyset order

When a relation has a complex order clause, ActiveRecord cannot reverse
it automatically. But when the order clause is built using
Gitlab::Pagination::Keyset::Order, we can determine the reverse order
because we pass it in explicitly in these cases.

This patch allows ActiveRecord to use the specified reverse order when
calling `#last` and other related methods that need a reverse order.
上级 0cdc2389
No related branches found
No related tags found
无相关合并请求
加载中
0% 加载中 .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册