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.

Eloy Duran's latest activity

Friday, March 06 2009
2146 Nested attributes doesn't run removing association callbacks was updated in Ruby on Rails
  • Eloy Duran
    • Assigned user set to Eloy Duran
    • Tag changed from activerecord, associations, callbacks, nested to activerecord, associations, callbacks, nested, tested
    • Milestone cleared.
    by Eloy Duran at 9:13 AM

    Cool thanks for the patch.

    Although I wonder why the callbacks aren't ran, because surely code like this already exists somewhere in Callbacks (I assume):

    
    de...
Wednesday, March 04 2009
1841 default_test errors in 2.3 RC1 was updated in Ruby on Rails
2127 Broken find last when no order is given. was updated in Ruby on Rails
  • Eloy Duran
    Eloy Duran commented at 3:52 PM

    Patch applies, tests run, and fixes issue.

    +1

Monday, March 02 2009
1841 default_test errors in 2.3 RC1 was updated in Ruby on Rails
2111 Nested forms reject_if is behaving stupidly was updated in Ruby on Rails
  • Eloy Duran
    • Assigned user set to Eloy Duran
    • State changed from new to invalid
    by Eloy Duran at 11:14 AM

    accepts_nested_attributes_for :phone_numbers, :allow_destroy => true, :reject_if => proc { |attr| attr[:number].blank? }

    Now it doesn't because the attribute n...

Sunday, March 01 2009
1841 default_test errors in 2.3 RC1 was updated in Ruby on Rails
  • Eloy Duran
    Eloy Duran commented at 9:40 PM

    Hey Dan,

    Yup, it's mocha. What I meant was that mocha behaves weird in the presence of minitest. So could you tun the test around? So remove minitest and instal...

2100 [PATCH] Change behaviour of association's after_add callback was updated in Ruby on Rails
  • Eloy Duran
    • Assigned user changed from Eloy Duran to Michael Koziarski
    by Eloy Duran at 12:47 PM
Saturday, February 28 2009
1841 default_test errors in 2.3 RC1 was updated in Ruby on Rails
  • Eloy Duran
    Eloy Duran commented at 12:20 PM

    I recently heard of some strange behaviour if minitest is installed as well. Would that be the case for you guys?

Friday, February 27 2009
1930 autosave should validate associations even if master is invalid was updated in Ruby on Rails
  • Eloy Duran
    • State changed from new to resolved
    by Eloy Duran at 12:55 PM
  • Eloy Duran
    Eloy Duran commented at 7:45 AM

    @Dmitry Yes, it's supposed to work like that. I'm a bit on the fence about instantiating a new record in fields_for, what if you don't want that? etc. Let's see...