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 Login or create a free account to add a new comment.
You can update this ticket by sending an email to from your email client. (help)
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile »
