method

collection?

rails latest stable - Class: ActiveRecord::Associations::Association

Method not available on this version

This method is only available on newer versions. The first available version (v7.2.3) is shown here.

collection?()
public

Whether the association represent a single record or a collection of records.