![ronin-13570 (at lighthouseapp) ronin-13570 (at lighthouseapp)](/images/avatar-large.gif)
first always returns array
Reported by ronin-13570 (at lighthouseapp) | February 14th, 2008 @ 04:42 PM
It seems as though any call to first with a limit of 1 returns an array rather than a single object or nil. Is this the
desired behaviour? It's certainly not what I would have expected.
Looking at the code, it seems there intention was always to return one result but that isn't actually happening. Here's a possible fix.
Comments and changes to this ticket
-
Chris Wanstrath February 16th, 2008 @ 03:10 AM
- State changed from new to resolved
Fixed tonight. Thanks.
Please Sign in or create a free account to add a new ticket.
With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป