method

include?

Importance_1
v6.1.7.7 - Show latest stable - 0 notes - Class: ActiveRecord::FinderMethods
include?(record) public

Returns true if the relation contains the given record or false otherwise.

No query is performed if the relation is loaded; the given record is compared to the records in memory. If the relation is unloaded, an efficient existence query is performed, as in #exists?.

Show source
Register or log in to add new notes.