This project is archived and is in readonly mode.
Allow limit option on find last to retrieve many recods
-
CancelProfileIsBroken
The syntax worries me a bit. It's not immediately obvious to me whether find(:last, :limit => 5) means "find the last five in the entire model" or "find a maximum of five instances and give me the last of those".
-
Emilio Tagua
Hey Mike,
The syntax is the same as for find(:all) and i guess you are not worried of doing find(:all, :limit =>5).
Also find_initial (or first) is just a find(:all) (or find_every) with :limit => 1.
-
DHH
- State changed from new to wontfix
Gotta say that I'm not a fan. find(:last) is a mirror of find(:first), not find(:all).
