Fixed has_and_belongs_to_many's CollectionAssociation size calculation.
has_and_belongs_to_many should fall back to using the normal CollectionAssociation's size calculation if the collection is not cached or loaded.
Fixes #14913, #14914.
Fred Wu
Fixed has_and_belongs_to_many's CollectionAssociation size calculation.
has_and_belongs_to_many should not include new records as part of #count_records as new records are already counted.
Fixes #14914.
Fred Wu