searchlogic icon indicating copy to clipboard operation
searchlogic copied to clipboard

If a scope_procedure comes out [] I can't apply .all....

Open timfong888 opened this issue 15 years ago • 0 comments

I defined a scope_procedure and I am trying to put the output into a variable name and so run the scoped procedure Company.search(:awesome => true).all

But when this search_procedure comes up empty, I get an error when applying .all to [].

What's the best way to handle -- seems like getting a [] would be a common scenario...thanks.

timfong888 avatar Oct 05 '10 03:10 timfong888