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.

ActiveRecord::Base.all misses some params

#694

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

returns all the records.

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

returns 10 records.

Reported by Allyn · July 24th, 2008 @ 04:49 PM

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

Activity

  1. Tom Ward
    Tom Ward

    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?

    July 25th, 2008 @ 12:16 PM

  2. Clemens Kofler
    Clemens Kofler

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

    July 25th, 2008 @ 12:56 PM

  3. Allyn
    Allyn

    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.

    July 28th, 2008 @ 03:50 PM

  4. Pratik
    Pratik
    • State changed from new to invalid

    July 28th, 2008 @ 03:58 PM