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.

labria's latest activity

Sunday, April 19 2009
2523 Add 'field' attribute to ActiveRecord::Errors#to_xml was updated in Ruby on Rails
  • labria
    labria commented at 3:52 PM

    Yes, that would be quite useful, +1 on that!

Monday, November 10 2008
1305 has_one dependent nullify deletes associated object on change was updated in Ruby on Rails
  • labria
    labria commented at 7:10 PM

    Fixed the case when destroy was called instead of delete. Tests included.

  • labria
    • Tag changed from has_one, nullify to has_one, nullify, patch
    by labria at 5:57 PM

    Here's the patch fixing the problem. What still remains is the fact that :destroy or :delete do not actually matter, each time #destroy is called.

  • labria
    labria commented at 5:41 PM

    I have found the source of it. The HasOneAssociation has a "replace" method. Inside it, it checks the dependent? method of the association, and if it finds it t...

  • labria
    labria commented at 5:24 PM

    Added a test to show the problem.