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.

More convenience wrappers for ActiveRecord::Base finds

#2950

I'm constantly annoyed when I type find_all and find_first and get a MethodNotFound error - these methods seem natural to me and to other developers I've talked to. So I thought I'd submit my first patch! These three methods are implemented and tested, and doc comments have been added. It's a simple implementation, but it works well.

Reported by Jamie Rumbelow · July 24th, 2009 @ 06:05 PM

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

Activity

  1. Matt Jones
    Matt Jones

    I doubt you'll have much luck with this - the methods used to be named like that, back in 2005 or so.

    July 26th, 2009 @ 05:47 AM

  2. Pratik
    Pratik
    • State changed from new to wontfix

    Should just use first/all/last

    July 26th, 2009 @ 09:58 PM