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.

Jonathan Monahan's latest activity

Wednesday, September 29 2010
5617 Patch: STI + Join Model + Polymorphic Associations works now was updated in Ruby on Rails
  • Jonathan Monahan
    Jonathan Monahan commented at 1:07 PM

    FWIW, I work on a Rails application where we needed to change the STI behaviour to store the sti_class rather than the base_class. A major impact that I don't t...

Thursday, March 26 2009
1723 Eager load of has_one :through with conditions on the :through table fails was updated in Ruby on Rails
  • Jonathan Monahan
    Jonathan Monahan commented at 11:29 PM

    Ah, OK. In that case, do my changes make any sense to you? Do they relate to another ticket that already exists perhaps? If not, should I raise a new ticket for...

  • Jonathan Monahan
    Jonathan Monahan commented at 4:58 PM

    Here is some of what I monkey-patched into association_join() in associations.rb:

    
                          " #{join_type} %s ON (%s.%s = %s.%s%s%s%s%s%s) " % [
    ...
  • Jonathan Monahan
    • Tag changed from :include, eager_loading, has_one_through to :include, :through_conditions, eager_loading, has_one_through
    by Jonathan Monahan at 10:27 AM

    Is this possibly related to the fact that there is no way to apply conditions to the :through association from the source association?

    I have monkey-patched thi...