AR association count deprecation missing from deprecation page

Right now if you have:

class User < ActiveRecord::Base   has_many :purchases end

...and call:

user.purchases_count

You'll get a deprecation warning which points you to http://www.rubyonrails.org/deprecation. I know to use user.purchases.count instead and why, but it would be good to amend the page for other folks who end up there.

Maybe something like:

*association*_count   use model.association.count instead

Best,

-Matt

Man that page is ugly :slight_smile:

I've added an entry for the case you found. However I think it might be an idea to start up a wiki page with some more useful information.

All the best...

Thanks! If/when it does point to a wiki page I'd certainly be happy to extend/improve explanations as I run into them.

-Matt