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

You must be a member of this account.

lcars's latest activity

Tuesday, September 21 2010
2933 2.3.2 update_attributes save many-to-many associations was updated in Ruby on Rails
  • lcars
    lcars commented at 3:49 PM

    I agree changing it's backwards incompatible and really problematic. I just wonder if #attributes= is expected to behave the same (I'm not saying it shouldn't),...

  • lcars
    lcars commented at 3:46 PM

    Sorry, my test wasn't focused on the specific issue. Is it then also expected for #attributes= ti save records?

    def test_assign_ids_via_attributes_without_savin...

  • lcars
    lcars commented at 3:38 PM

    added this test to autosave_association_test.rb

    def test_assign_ids_without_saving

    firm = Firm.new("name" => "Apple")
    firm.save
    firm.reload
    firm.client_ids = [...
  • lcars
    lcars commented at 1:06 PM

    Not sure how to fix the .attributes = case. I assume that it's implied in the documentation that foo.bar_ids = immediately replaces the collection. Being this t...

  • lcars
    lcars commented at 11:52 AM

    Other than validation concerns, is .attributes= expected to update associations before .save ? It is not clear from documentation that .attributes implies .save...

2 earlier changes…
  • lcars
    lcars commented at 11:25 AM

    Working on a patch right now, I should also note that I would treat this issue as a security bug as it allows validation to fails but still to update associatio...

  • lcars
    lcars commented at 10:59 AM

    This bug still affects attributes= method. It should be fixed there as well.

Thursday, September 16 2010
5639 define_attribute_methods race leads to method missing exception while creatin... was created in Ruby on Rails
  • lcars
    lcars created the ticket at 11:10 AM

    Hi, we are experiencing random 'undefined method' errors while creating objects in an heavily threaded environment, here's an example:

    caught exception in vendo...

Wednesday, June 09 2010
4813 habtm _ids association with non numeric ids no longer allowed was created in Ruby on Rails
  • lcars
    lcars created the ticket at 6:13 PM

    Hi,

    The pasted code (around line 1337 of lib /active_record/associations.rb in activerecord-2.3.8) prevents the usage of non numeric ids (which afaik is perfect...