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.

Mike Breen's latest activity

Monday, May 25 2009
2712 has_one and after_create association bug was updated in Ruby on Rails
Wednesday, May 20 2009
1211 reset_counter_cache was updated in Ruby on Rails
  • Mike Breen
    Mike Breen commented at 3:38 PM

    After talking with the mysterious "noob" on irc I've updated the patch:

    • use #find_each
    • use #reflect_on_association to get the counter_cache column name
    • use con...
Sunday, May 10 2009
2501 :any_blank and :all_blank options for accepts_nested_attributes_for :reject_if was updated in Ruby on Rails
  • Mike Breen
    • Assigned user set to Michael Koziarski
    by Mike Breen at 3:29 AM

    After talking with Koz the :any_blank is being dropped. The thinking is that you'd be better served by validations there.

Tuesday, May 05 2009
2501 :any_blank and :all_blank options for accepts_nested_attributes_for :reject_if was updated in Ruby on Rails
  • Mike Breen
    Mike Breen commented at 7:54 PM

    Thanks for all the +1 love but in order for core to take this seriously you'll need to add just a little bit more.

    Thanks again. Mike

Thursday, April 23 2009
1211 reset_counter_cache was updated in Ruby on Rails
  • Mike Breen
    Mike Breen commented at 12:57 PM

    @Max

    reset_counter_cache does reset to the exact number of records, but only after resetting it to zero first.

    After thinking about this there is really no long...

Sunday, April 19 2009
2520 Patch - ActiveRecord#touch without validations was updated in Ruby on Rails
  • Mike Breen
    Mike Breen commented at 9:06 PM

    This patch applies cleanly for me on edge. I also feel strongly that touch should not run the validations and there should be a touch! for that case.

  • Mike Breen
    Mike Breen commented at 8:42 PM

    +1

Wednesday, April 15 2009
2501 :any_blank and :all_blank options for accepts_nested_attributes_for :reject_if was created in Ruby on Rails
  • Mike Breen
    Mike Breen created the ticket at 6:06 PM

    I'm seeing a pattern in my projects when using accepts_nested_attributes_for with the :reject_if option:

    class Blog < ActiveRecord::Base
      has_many :posts
      ha...
Tuesday, April 14 2009
1211 reset_counter_cache was updated in Ruby on Rails
  • Mike Breen
    Mike Breen commented at 3:43 PM

    Thanks for pointing that out Sascha. I've updated the patch to set the counter to zero first.

Sunday, April 12 2009
2365 add :new_if_blank option to fields_for for nested associations was updated in Ruby on Rails
  • Mike Breen
    Mike Breen commented at 4:01 AM

    @Jose

    I believe the reason we went with "new" over "build" (or "create") is because Eloy wants to stay ORM agnostic. "build" is an AR convention so we went with...