Flowdock
any?(*args) public

Returns true if there are any records.

When a pattern argument is given, this method checks whether elements in the Enumerable match the pattern via the case-equality operator (===).

posts.any?(Post) # => true or false
Show source
Register or log in to add new notes.
March 21, 2016
1 thank

Should include information about optional block

If a block exists, will return true if any records in the relation is true for the given block. Otherwise, returns true is there are any records.