Jonathan Monahan
Software Engineer · Not a member
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 commented at 1:07 PMFWIW, 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 commented at 11:29 PMAh, 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 commented at 4:58 PMHere 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) " % [ ... -
- Tag changed from :include, eager_loading, has_one_through to :include, :through_conditions, eager_loading, has_one_through
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...