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

There are no available projects.

Balint Erdi's latest activity

Monday, January 18 2010
2907 Custom counter_cache is not used when using collection.size method was updated in Ruby on Rails
  • Balint Erdi
    • Tag changed from active_record, collection, counter_cache, patch to 2.3.6, active_record, collection, counter_cache, patch
    by Balint Erdi at 12:50 PM
Saturday, January 16 2010
2907 Custom counter_cache is not used when using collection.size method was updated in Ruby on Rails
  • Balint Erdi
    Balint Erdi commented at 12:35 PM

    @Fernando, I am really happy to hear that, but beyond trust, could you check out the 2-3-stable branch, apply my patch, and tell me if it works? Only if you hav...

Friday, January 15 2010
2907 Custom counter_cache is not used when using collection.size method was updated in Ruby on Rails
  • Balint Erdi
    • Tag changed from active_record, collection, counter_cache to active_record, collection, counter_cache, patch
    by Balint Erdi at 12:55 PM
  • Balint Erdi
    Balint Erdi commented at 12:54 PM

    And here is the patch that fixes it.

  • Balint Erdi
    Balint Erdi commented at 10:27 AM

    Added failing unit test.

Wednesday, January 13 2010
2907 Custom counter_cache is not used when using collection.size method was updated in Ruby on Rails
  • Balint Erdi
    Balint Erdi commented at 5:55 PM

    Hmm, but I did manage to recreate the original problem:

    With :counter_cache => true :

    >> Author.find(a.id).send(:read_attribute, "posts_count")
    => 1
    >> Author....
  • Balint Erdi
    Balint Erdi commented at 4:48 PM

    I think this is not related with the counter_cache column having the default name or a custom one. I found two tests for this:

      def test_counter_cache
        top...
Wednesday, May 20 2009
2681 Configuration.default_load_paths includes the default controllers directory t... was updated in Ruby on Rails
2669 rake gems:unpack unnecessarily complains about writability of global gem dir was updated in Ruby on Rails
  • Balint Erdi
    Balint Erdi commented at 11:19 AM

    You are right. I am running rubygems 1.3.1 and the issue is fixed in 1.3.3