method
collection?
v4.2.1 -
Show latest stable
- Class:
ActiveRecord::Reflection::AssociationReflection
collection?()public
Returns whether or not this association reflection is for a collection association. Returns true if the macro is either has_many or has_and_belongs_to_many, false otherwise.