This project is archived and is in readonly mode.

#694 ✓invalid

ActiveRecord::Base.all misses some params

Reported by Allyn | July 24th, 2008 @ 04:49 PM | in 2.x

ActiveRecord::Base.all(:limit => 10)

returns all the records.

ActiveRecord::Base.find(:all, :limit => 10)

returns 10 records.

Comments and changes to this ticket

  • Tom Ward

    Tom Ward July 25th, 2008 @ 12:16 PM

    I can't recreate this, it seems to work for me.

    Can you either attach a failing test case, or provide more details of when/where this bug occurs?

  • Clemens Kofler

    Clemens Kofler July 25th, 2008 @ 12:56 PM

    Same here - I get 5 records back if I do Model.all(:limit => 5).

  • Allyn

    Allyn July 28th, 2008 @ 03:50 PM

    It was a problem we had in a controller - I had switched the find to all, and it stopped working for my coworker. I asked him to test and he could not recreate the error (nor I). I'm not sure what happened, but I think it was an error with a plugin. If I figure out anything else relevant I'll post here, but I think we can assume this ticket is closed.

  • Pratik

    Pratik July 28th, 2008 @ 03:58 PM

    • State changed from “new” to “invalid”

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>