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

Open
timfong888 opened this Issue Oct 5, 2010 · 0 comments

Projects

None yet

1 participant

@timfong888

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment