Posts Tagged as ‘activerecord’

January 30, 2008

Is an association already loaded?

If you can’t tell… I like posting little “cheatsheet” items here. So, here’s another one that I’ve bumped into again recently after not needing it for a while.
You want to know how many Items are currently in the Store and you’ve got this in your Store definition:
has_many :items
If the Items for this Store have [...]