Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

There was a problem

You must be a member of this account.

Mike Champion's latest activity

Thursday, July 09 2009
1689 Add I18n shortcuts to AR models was updated in Ruby on Rails
  • Mike Champion
    Mike Champion commented at 7:45 PM

    I wrote a plugin/gem that adds a more DRY "translate" to models, mailers, controllers, views. Might be interesting for those running into this issue:

    http://git...

Thursday, August 28 2008
831 count on HABTMs broken by Ruby 1.8.7 Array.count was updated in Ruby on Rails
  • Mike Champion
    Mike Champion commented at 8:52 PM

    Great, thanks for the patch Ernie!

Wednesday, August 20 2008
831 count on HABTMs broken by Ruby 1.8.7 Array.count was updated in Ruby on Rails
  • Mike Champion
    Mike Champion commented at 7:31 PM

    Ernie, I applied your patch and it fixed my small sample app's tests that exercised the HABTM count problem. Thanks!

    I have not yet tried it in our real app to...

Thursday, August 14 2008
831 count on HABTMs broken by Ruby 1.8.7 Array.count was updated in Ruby on Rails
  • Mike Champion
    Mike Champion commented at 9:27 PM

    Thanks. I think you're right as to the cause. The method_missing in association_collection looks at the class level methods, where "count" is defined by calcula...

  • Mike Champion
    Mike Champion created the ticket at 5:05 PM

    Ruby 1.8.7 introduces several new methods including Array.count (through Enumerable). This appears to break using the count method on HABTM relationships, altho...