The includes_count method executes a SQL count on an association to retrieve its number of records, optionally filtered by a set of conditions.
None
Santiago Palladino