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.

Mateusz Drożdżyński's latest activity

Tuesday, September 21 2010
5392 column_definitions method being called before and after every single SQL stat... was updated in Ruby on Rails
  • Mateusz Drożdżyński
    Mateusz Drożdżyński commented at 10:40 AM

    We diagnosed it only happens when Arel fetches columns independently of ActiveRecord. In AR table columns are memoised in ActiveRecord::Base#columns, so only th...

  • Mateusz Drożdżyński
    Mateusz Drożdżyński commented at 10:37 AM

    We diagnosed it only happens when Arel fetches columns independently of ActiveRecord. In AR table columns are memoised in @@@ActiveRecord::Base#columns@@@, so o...

Tuesday, July 20 2010
5158 New update_attribute doesn't work with associations was updated in Ruby on Rails
  • Mateusz Drożdżyński
    Mateusz Drożdżyński commented at 12:08 PM

    Plus, regardless of the rationale behind it, shouldn't it raise an exception when you're trying to do so as opposed to going all the way through with the databa...

  • Mateusz Drożdżyński
    Mateusz Drożdżyński commented at 12:01 PM

    What was the reason for not supporting associations? Is this a design decision or simply something that is yet to be added?

  • Mateusz Drożdżyński
    Mateusz Drożdżyński created the ticket at 11:31 AM

    Previous implementation of update_attribute:

    def update_attribute(name, value)
      send("#{name}=", value)
      save(false)
    end
    

    worked just fine with associations.

    ...