Mike Champion
Not a member
Mike Champion's latest activity
Thursday, July 09 2009
1689
Add I18n shortcuts to AR models
was updated
in Ruby on Rails
-
Mike Champion commented at 7:45 PMI wrote a plugin/gem that adds a more DRY "translate" to models, mailers, controllers, views. Might be interesting for those running into this issue:
Thursday, August 28 2008
Wednesday, August 20 2008
831
count on HABTMs broken by Ruby 1.8.7 Array.count
was updated
in Ruby on Rails
-
Mike Champion commented at 7:31 PMErnie, 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 commented at 9:27 PMThanks. 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 created the ticket at 5:05 PMRuby 1.8.7 introduces several new methods including Array.count (through Enumerable). This appears to break using the count method on HABTM relationships, altho...