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.

Tanel Suurhans's latest activity

Friday, April 30 2010
4503 Polymorphic belongs_to with blank values causes unwanted behavior was updated in Ruby on Rails
  • Tanel Suurhans
    Tanel Suurhans commented at 11:35 AM

    Added a patch for current master (this issue seems to exist in rails 3 also).

  • Tanel Suurhans
    • Tag set to associations, belongs_to_polymorphic_association
    by Tanel Suurhans at 10:17 AM
  • Tanel Suurhans
    Tanel Suurhans commented at 10:15 AM

    Added a new, proper patch

Thursday, April 29 2010
4503 Polymorphic belongs_to with blank values causes unwanted behavior was created in Ruby on Rails
  • Tanel Suurhans
    Tanel Suurhans created the ticket at 10:44 PM

    Found two cases where assigning a blank value (an empty string) to a polymorphic belongs_to causes unexpected behavior in rails 2.3.5.

    class User < ActiveRecor...
Monday, April 19 2010
4298 Marking Activerecord object as dirty was updated in Ruby on Rails
  • Tanel Suurhans
    Tanel Suurhans commented at 8:20 PM

    I suppose it would be too costly do have some kind of a diff logic run before the call to save, to see if some attributes have changed?

Monday, March 01 2010
1695 named_scope with :joins does not work properly through HABTM associations was updated in Ruby on Rails
  • Tanel Suurhans
    Tanel Suurhans commented at 3:46 PM

    Seems like this bug surfaces even without :select conditions.
    For example in a case like this:

    class Key < ActiveRecord::Base
      has_many :values
    end
    
    class Val...