KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
Is there a Rails/Ruby idiom for checking if an enumerable is both present and has non- nil values? I get errors if I ever try to do nil.any? so I always have to do if foo && foo.any? .
Tags (comma-separated)
Save Edits
Cancel