method

none?

Importance_1
Ruby on Rails latest stable (v7.1.3.2) - 0 notes - 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
Show source
Register or log in to add new notes.