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.

Jon Leighton's latest activity

Thursday, December 23 2010
5442 Model.has_many_through_association.find(id) returns a read-only record was updated in Ruby on Rails
  • Jon Leighton
    • Milestone set to 3.1
    by Jon Leighton at 4:39 PM

    Contrary to my earlier assertion, this is not fixed in 3-0-stable. It is, however, fixed in master.

    I've looked into fixing it in 3-0-stable but my personal opi...

6212 It should be invalid to go :through a polymorphic belongs_to was updated in Ruby on Rails
142 belongs_to association not updated when assigning to foreign key was updated in Ruby on Rails
  • Jon Leighton
    • State changed from incomplete to duplicate
    by Jon Leighton at 1:45 PM

    If anyone is interested, this has been re-reported at #2989 and is being taken forward there.

2989 Setting the id of a belongs_to object does not update the reference to the ob... was updated in Ruby on Rails
  • Jon Leighton
    • State changed from resolved to open
    by Jon Leighton at 1:41 PM

    This bug was actually originally reported at #142. A fix similar to the above checked in, but then reverted on the basis that there were problems with it. I've ...

Wednesday, December 22 2010
6212 It should be invalid to go :through a polymorphic belongs_to was created in Ruby on Rails
  • Jon Leighton
    Jon Leighton created the ticket at 10:18 PM

    Consider the following:

        class Tagging
          belongs_to :taggable, :polymorphic => true
          has_many :something, :through => :taggable
        end
    

    Obviously ...

2189 count breaks has_many through association collection with named scope was updated in Ruby on Rails
  • Jon Leighton
    Jon Leighton commented at 11:57 AM
  • Jon Leighton
    • Milestone cleared.
    • Assigned user changed from Pratik to Aaron Patterson
    by Jon Leighton at 11:55 AM

    The test passes now, but it wasn't a great test because the scope used did not actually constrain the result of the query. I've written a similar test where the...

6153 Accessing associations via x_ids no longer uses association conditions was updated in Ruby on Rails
5964 has_many through append to collection should have duplicates before reload was updated in Ruby on Rails
  • Jon Leighton
    • State changed from new to open
    by Jon Leighton at 12:22 AM