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

Wednesday, December 22 2010
5964 has_many through append to collection should have duplicates before reload was updated in Ruby on Rails
  • Jon Leighton
    • Assigned user set to Aaron Patterson
    • Tag changed from rail3 has_many, has_many_through to rail3 has_many, has_many_through, patch
    • Importance changed from to Low
    by Jon Leighton at 12:22 AM

    Hi Chris,

    Thanks for the bug report. I've created a patch which I'll hopefully get Aaron to merge at some point.

    Cheers,
    Jon

Tuesday, December 21 2010
5512 has_one :through through belongs_to fails on includes() was updated in Ruby on Rails
  • Jon Leighton
    • State changed from new to resolved
    • Importance changed from to Low
    by Jon Leighton at 9:52 PM

    Hi there,

    Thanks for the bug report. I have tried your test, and it passes on current master. I suspect it is related to #2801 which is fixed in master.

    Jon

6089 Can't overwrite select for has_many through was updated in Ruby on Rails
  • Jon Leighton
    • State changed from new to open
    • Assigned user set to Aaron Patterson
    • Importance changed from to Low
    by Jon Leighton at 9:38 PM

    I can confirm this is an issue and that the proposed patch fixes it. However, it did not apply cleanly, so I've updated it and attached. I've also removed the m...

2801 incorrect sql from has_many :through was updated in Ruby on Rails
  • Jon Leighton
    • Milestone cleared.
    • State changed from resolved to open
    by Jon Leighton at 9:01 PM

    I've seen about 3 other bug reports about this issue, so I've ported the fix to 3-0-stable too, as it would be good to get in 3.0.4. Thanks.

6085 joins() on has_one through generates SQL query with "IS NULL" was updated in Ruby on Rails
  • Jon Leighton
    • State changed from new to duplicate
    • Importance changed from to Low
    by Jon Leighton at 8:16 PM

    Hi there,

    Thanks for the bug report.

    This is a duplicate of #2801, which is fixed in master.

    Jon

6007 In Rails 2.3.10 :has_one :through using :include can generate invalid sql was updated in Ruby on Rails
  • Jon Leighton
    • State changed from new to duplicate
    • Importance changed from to Low
    by Jon Leighton at 8:14 PM

    Hi,

    Thanks for the bug report. I've tested your example against master and it is fixed these days. I believe this is a duplicate of #2801.

    Thanks,
    Jon

5854 has_one :through on new record doesn't query for associated object was updated in Ruby on Rails
  • Jon Leighton
    • State changed from new to invalid
    • Importance changed from to Low
    by Jon Leighton at 7:57 PM

    Hi there,

    Thanks for the bug report. To do this you can use the :inverse_of option on your User.has_many :bank_infos.

    Jon

5768 A set of includes in active records break when I add an order was updated in Ruby on Rails
  • Jon Leighton
    • State changed from new to stale
    • Importance changed from to Low
    by Jon Leighton at 7:50 PM

    Hi there,

    Thanks for the bug report.

    I've tried out your code against Rails 3.0.3 and cannot reproduce the problem.

    I'm marking as stale, let me know if the pro...

5687 ActiveRecord caching has_many :through was updated in Ruby on Rails
  • Jon Leighton
    • State changed from new to invalid
    • Importance changed from to Low
    by Jon Leighton at 6:48 PM

    Thanks for the bug report.

    In the example you've given, the first time you run me.favorite_pets, it goes to the database and get the answer (empty). It then rem...

5617 Patch: STI + Join Model + Polymorphic Associations works now was updated in Ruby on Rails