searchlogic
searchlogic copied to clipboard
If a scope_procedure comes out [] I can't apply .all....
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.