method
none?
v7.2.3 -
Show latest stable
- Class:
ActiveRecord::Relation
none?(*args)public
Returns true if there are no records.
When a pattern argument is given, this method checks whether elements in the Enumerable match the pattern via the case-equality operator (===).
posts.none?(Comment) # => true or false