binarylogic / searchlogic

Searchlogic provides object based searching, common named scopes, and other useful tools.
http://rdoc.info/projects/binarylogic/searchlogic
MIT License
1.4k stars 133 forks source link

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

Open timfong888 opened 13 years ago

timfong888 commented 13 years ago

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.