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.

Chris Kampmeier's latest activity

Sunday, November 15 2009
3482 Activesupport caching can't fetch cached boolean false, always re-calculates was updated in Ruby on Rails
  • Chris Kampmeier
    Chris Kampmeier commented at 12:28 AM

    Hey Brian, nice catch. I agree that the current behavior isn't correct.

    I noticed a few problems with the patch, though:

    1. You'd need to add stubs for #exist? to...
Monday, March 16 2009
1769 Single row update without a select or knowing id was updated in Ruby on Rails
  • Chris Kampmeier
    Chris Kampmeier commented at 1:31 PM

    This is already available as ActiveRecord::Base#update_all. See the API docs for more info.

2224 Report errors when running top-level build was updated in Ruby on Rails
  • Chris Kampmeier
    Chris Kampmeier commented at 1:26 PM

    I was just wondering about this a moment ago. Looks good, works as expected. +1

1500 Named scopes should implement #many? so they'll use COUNT(*) was updated in Ruby on Rails
  • Chris Kampmeier
    • Tag changed from enumerable, named_scope, patch to associations, enumerable, named_scope, patch
    by Chris Kampmeier at 1:14 PM

    OK, here's an updated patch that implements #many? for AssociationCollections, too.

Monday, January 12 2009
1539 unnecessarily loading environment was updated in Ruby on Rails
  • Chris Kampmeier
    Chris Kampmeier commented at 5:33 AM

    I can't seem to confirm this.

    I generated a fresh Rails app from rails/master (at 296ca4da1700eb27a7043112d22027444ea0e548), and vendor'd rails. I stuck a puts ...

1734 ActiveRecord::Base#self_and_descendents_from_active_record is misspelled was created in Ruby on Rails
  • Chris Kampmeier
    Chris Kampmeier created the ticket at 5:16 AM

    It should be descendants, with an A. In standard usage, "descendant" is the noun and "descendent" is the adjective. This is also the common usage across the Rai...

Wednesday, January 07 2009
1619 Support for :inverse option in associations was updated in Ruby on Rails
  • Chris Kampmeier
    Chris Kampmeier commented at 9:04 AM

    Why is :inverse specified explicitly? In your example, it's always the same as the class declaring the association.

Monday, December 01 2008
1499 [PATCH] find_last (find(:last)) affects other calls on the same scope was updated in Ruby on Rails
  • Chris Kampmeier
    Chris Kampmeier commented at 7:20 AM

    +1, nice catch.

    Tried it out, looks good. Tests are great; patch fixes the problem, although I don't know enough about method scoping to know if there's a bette...

1500 Named scopes should implement #many? so they'll use COUNT(*) was created in Ruby on Rails
  • Chris Kampmeier
    Chris Kampmeier created the ticket at 6:15 AM

    Enumerable#many? went in recently, and it's nice to have. However, many Enumerable methods have corresponding implementations in the ActiveRecord::NamedScope::S...

Sunday, November 30 2008
1398 wrong argument name in expire_fragment doc was updated in Ruby on Rails