class PgSearch::Configuration::Association

def singular_association?

def singular_association?
  %i[has_one belongs_to].include?(@model.reflect_on_association(@name).macro)
end