
#last ignoring :limit condition
Reported by Kabari | January 15th, 2011 @ 05:39 PM
Per this thread: http://groups.google.com/group/datamapper/browse_thread/thread/c154...
When the :limit condition is set, #last:
- should probably perform/return a query such as 'select * from
things limit 10, 1' when used like Thing.all(:limit => 10).last
(for mysql, postgres, and sqlite at least) or the equivalent for
other adapters.
- In a case where an adapter doesn't support finding the nth result, it should work like Array#last and return the last result of the collection (thus performing the query)
No comments found
Please Sign in or create a free account to add a new ticket.
With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile »