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.

Lawrence Pit's latest activity

Monday, September 28 2009
3288 Using destroy on AR association collection updates the collection in memory. was created in Ruby on Rails
  • Lawrence Pit
    Lawrence Pit created the ticket at 1:14 AM

    This fails on the second +assert_equal+ statement.

      p = Pirate.first
      assert_equal 2, p.parrots.length
      p.parrots.destroy(p.parrots.first)
      assert_equal 1,...
Sunday, September 27 2009
has_many_callbacks.diff was uploaded by Lawrence Pit at 8:50 AM to #3277, Ruby on Rails
3147 ActiveRecord::Error#full_message broken when used with I18n and autosave asso... was updated in Ruby on Rails
  • Lawrence Pit
    Lawrence Pit commented at 8:34 AM

    I applied the patch and tested it. It looks to me. So +1

    One thing though: currently the relationship of the Error object with the specific association is remov...

3277 +before_create+, +after_create+, +before_destroy+ and +after_destroy+ callbac... was created in Ruby on Rails
  • Lawrence Pit
    Lawrence Pit created the ticket at 7:19 AM

    I have a need to log / audit changes to has_many and has_and_belongs_to_many records. Especially has_and_belongs_to_many associations are currently hard to audi...

Thursday, September 24 2009
3186 Improved AR::Errors API to get to the Error objects was updated in Ruby on Rails
  • Lawrence Pit
    • Tag changed from 2-3-stable, active_record, i18n to 2-3-stable, active_record, i18n, patch
    by Lawrence Pit at 12:48 PM
  • Lawrence Pit
    • Assigned user cleared.
    by Lawrence Pit at 12:41 PM
3185 Docs and tests for the Errors.each_error method was updated in Ruby on Rails
  • Lawrence Pit
    • Tag changed from 2.3.x, active_record, i18n to 2.3.x, active_record, i18n, patch
    by Lawrence Pit at 12:48 PM
  • Lawrence Pit
    • Assigned user cleared.
    by Lawrence Pit at 12:41 PM
Friday, September 11 2009
3186 Improved AR::Errors API to get to the Error objects was updated in Ruby on Rails
  • Lawrence Pit
    Lawrence Pit commented at 7:25 AM

    where you just want to check the presence of a specific error.

    what I mean is, in my specs I'd like to do:

       model.error_on(:title).type.should == :invalid
    ...
  • Lawrence Pit
    Lawrence Pit created the ticket at 7:20 AM

    Currently the only way to get to the raw Error objects if via model.errors.each_error. This patch provides a nicer API for the usual cases where you just want t...