I made one small change to a local version of the count tag and it kept it from loading the whole association every time I used it.
I added this.try.size || to the beginning of the c = line. The try.to_int was causing it to load the whole association. Size is nice because if it's already loaded it uses array length. If it's not, it uses count. And it will use an auto cache counter column if it's available. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Hobo Users" 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/hobousers?hl=en -~----------~----~----~----~------~----~------~--~---
