class Shoulda::Matchers::ActiveModel::ValidatePresenceOfMatcher
def collection_association?
def collection_association? association? && [:has_many, :has_and_belongs_to_many].include?( association_reflection.macro, ) end
def collection_association? association? && [:has_many, :has_and_belongs_to_many].include?( association_reflection.macro, ) end