Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Consistency between first() and last() with limit #27597
As discussed in #23979, there was an inconsistency between the way that
> Topic.limit(1).first(2).size => 2 > Topic.limit(1).last(2).size => 1
This PR is a refactor and rebase of #24124, with a simpler test suite and simpler implementation.
Discussion with Rails community members as well as DHH in #23598 (comment) showed that the behavior or
This PR resolves the inconsistency between