<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -611,6 +611,28 @@ module ActiveResource
         end
       end
 
+
+      # A convenience wrapper for &lt;tt&gt;find(:first, *args)&lt;/tt&gt;. You can pass
+      # in all the same arguments to this method as you can to
+      # &lt;tt&gt;find(:first)&lt;/tt&gt;.
+      def first(*args)
+        find(:first, *args)
+      end
+
+      # A convenience wrapper for &lt;tt&gt;find(:last, *args)&lt;/tt&gt;. You can pass
+      # in all the same arguments to this method as you can to
+      # &lt;tt&gt;find(:last)&lt;/tt&gt;.
+      def last(*args)
+        find(:last, *args)
+      end
+
+      # This is an alias for find(:all).  You can pass in all the same
+      # arguments to this method as you can to &lt;tt&gt;find(:all)&lt;/tt&gt;
+      def all(*args)
+        find(:all, *args)
+      end
+
+
       # Deletes the resources with the ID in the +id+ parameter.
       #
       # ==== Options</diff>
      <filename>activeresource/lib/active_resource/base.rb</filename>
    </modified>
    <modified>
      <diff>@@ -126,18 +126,56 @@ class FinderTest &lt; Test::Unit::TestCase
     assert_equal &quot;David&quot;, all.last.name
   end
 
+  def test_all
+    all = Person.all
+    assert_equal 2, all.size
+    assert_kind_of Person, all.first
+    assert_equal &quot;Matz&quot;, all.first.name
+    assert_equal &quot;David&quot;, all.last.name
+  end
+
+  def test_all_with_params
+    all = StreetAddress.all(:params =&gt; { :person_id =&gt; 1 })
+    assert_equal 1, all.size
+    assert_kind_of StreetAddress, all.first
+  end
+
   def test_find_first
     matz = Person.find(:first)
     assert_kind_of Person, matz
     assert_equal &quot;Matz&quot;, matz.name
   end
 
+  def test_first
+    matz = Person.first
+    assert_kind_of Person, matz
+    assert_equal &quot;Matz&quot;, matz.name
+  end
+
+  def test_first_with_params
+    addy = StreetAddress.first(:params =&gt; { :person_id =&gt; 1 })
+    assert_kind_of StreetAddress, addy
+    assert_equal '12345 Street', addy.street
+  end
+
   def test_find_last
     david = Person.find(:last)
     assert_kind_of Person, david
     assert_equal 'David', david.name
   end
 
+  def test_last
+    david = Person.last
+    assert_kind_of Person, david
+    assert_equal 'David', david.name
+  end
+
+  def test_last_with_params
+    addy = StreetAddress.last(:params =&gt; { :person_id =&gt; 1 })
+    assert_kind_of StreetAddress, addy
+    assert_equal '12345 Street', addy.street
+  end
+
   def test_find_by_id_not_found
     assert_raise(ActiveResource::ResourceNotFound) { Person.find(99) }
     assert_raise(ActiveResource::ResourceNotFound) { StreetAddress.find(1) }</diff>
      <filename>activeresource/test/cases/finder_test.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>8bc3a147270546325458da65ae6f5e83dd260aeb</id>
    </parent>
  </parents>
  <author>
    <name>taryn</name>
    <login>taryneast</login>
    <email>teast@globalpersonals.co.uk</email>
  </author>
  <url>http://github.com/rails/rails/commit/ce61a6bd551a96205892a125c8835c4bc69c4fad</url>
  <id>ce61a6bd551a96205892a125c8835c4bc69c4fad</id>
  <committed-date>2009-08-21T12:49:59-07:00</committed-date>
  <authored-date>2009-08-21T01:45:29-07:00</authored-date>
  <message>Added first/last/all aliases for equivalent find scopes

Just a copy from Active Record (with tests). Each is a warpper function for
the equivalent scoped call to find eg first is a wrapper for find(:first)

Signed-off-by: Joshua Peek &lt;josh@joshpeek.com&gt;</message>
  <tree>853cf3ffa9676d3535e49d2cd06b04033423c32b</tree>
  <committer>
    <name>Joshua Peek</name>
    <login>josh</login>
    <email>josh@joshpeek.com</email>
  </committer>
</commit>
