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


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Core" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-core?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to