Closed this issue 5 years ago · 4 comments
The same error is thrown, when trying to get the first record in an empty relation. Would it be possible to return an empty array, when trying to do either of these operations? Then you would get the desired output (true and nil).
@woller By "asking if it's empty" do you mean calling .empty?.
.empty?
@pilaf Yeah, that's what I meant.
@woller
I just pushed a fix for this to the fix-no-matching-records-error branch (changes here: dc0a629).
Would you mind sourcing the gem from that branch and checking if it solves the issue?
@woller Actually would you mind responding on #34 ?
That issue and this one appear to be the same.