This project is archived and is in readonly mode.

#754 ✓resolved
Adrian Mugnolo

Add a :last scope to ActiveResource::Base.find

Reported by Adrian Mugnolo | August 4th, 2008 @ 04:36 PM | in 2.x

This patch adds a :last scope to ActiveResource::Base.find following ActiveRecord::Base semantics. A test case is included.

Person.find(:first, :from => :managers)
# => GET /people/managers.xml

Person.find(:last, :from => :managers)
# => GET /people/managers.xml

The patch also removes trailing whitespace in order to match Rails coding style.

Comments and changes to this ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

<h2 style="font-size: 14px">Tickets have moved to Github</h2>

The new ticket tracker is available at <a href=""></a>

People watching this ticket


Referenced by