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.

Ryan Wallace's latest activity

Thursday, April 07 2011
6684 [TEST] Inverse of doesn't work when associations eager load other associations was updated in Ruby on Rails
  • Ryan Wallace
    • State changed from new to duplicate
    by Ryan Wallace at 8:46 PM

    Never mind. This is a duplicate of #4914. [state:duplicate]

  • Ryan Wallace
    Ryan Wallace created the ticket at 8:06 PM

    Using includes when loading an association that has an inverse_of causes the inverse_of not to work.

    p = Project.find(1)
    pi = p.project_items
    pi[0].project # D...
Wednesday, March 16 2011
3461 Touch called on parent destroy was updated in Ruby on Rails
  • Ryan Wallace
    Ryan Wallace commented at 10:39 PM

    FYI: This is fixed in Rails 3

Friday, September 24 2010
5626 ActiveRecord generates invalid SQL when eager loading a hmt association with ... was updated in Ruby on Rails
  • Ryan Wallace
    Ryan Wallace commented at 3:13 PM

    Oh perfect. Perhaps I should have read the documentation before asking for that case to be documented! +1 for this patch from me. Small, simple, and effective.

    ...

Thursday, September 23 2010
5626 ActiveRecord generates invalid SQL when eager loading a hmt association with ... was updated in Ruby on Rails
  • Ryan Wallace
    Ryan Wallace commented at 10:31 PM

    Hi Marcelo,

    Thanks for drafting up a patch! I did a bit of experimenting and I've found one situation where invalid SQL will still be generated:

      class Author...
Wednesday, September 15 2010
5626 ActiveRecord generates invalid SQL when eager loading a hmt association with ... was updated in Ruby on Rails
  • Ryan Wallace
    • Tag changed from 2.3.9 to 2.3.9, activerecord, eager_loading, has_many_through
    by Ryan Wallace at 5:23 PM
Monday, September 13 2010
5626 ActiveRecord generates invalid SQL when eager loading a hmt association with ... was updated in Ruby on Rails
  • Ryan Wallace
    Ryan Wallace commented at 5:10 PM

    I'm thinking it might make sense to fall back to a table join strategy (as mentioned in the ActiveRecord::AssociationPreload documentation) though I'm not sure ...

  • Ryan Wallace
    Ryan Wallace commented at 5:05 PM

    The issue seems to have been introduced in this commit:
    http://github.com/rails/rails/commit/0963774c0a6a58ba13ac0ff4763527...

    Though it looks like before this...

  • Ryan Wallace
    Ryan Wallace commented at 4:43 PM
  • Ryan Wallace
    Ryan Wallace created the ticket at 4:26 PM

    Given:

    class Author < ActiveRecord::Base
      has_many :posts
      has_many :comments_desc, :through => :posts, :source => :comments, :order => 'comments.id DESC'
    en...