Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

This project is archived and is in readonly mode.

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

#754

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.

Reported by Adrian Mugnolo · August 4th, 2008 @ 04:36 PM

State: resolved
Milestone: 2.x
Assigned to: nobody
Importance: none

Activity

  1. Repository
    Repository
    • State changed from new to resolved

    (from [893fb5bb639b0938f6762ef1165b05abae255986]) Add ActiveResource::Base.find(:last). [#754 Add a :last scope to ActiveResource::Base.find state:resolved]

    Signed-off-by: Pratik Naik pratiknaik@gmail.com http://github.com/rails/rails/co...

    August 22nd, 2008 @ 03:07 AM