DEV Community

David Le
David Le

Posted on

Filtering out nil with Ruby

Use where.not(:attribute => nil) for retrieving all records that don't have that attribute as nil.

Top comments (0)