Ruby on Rails | Screencasts | Download | Documentation | Weblog | Community | Source

Ticket #9768 (new defect)

Opened 1 year ago

Last modified 1 year ago

[PATCH] Eager loading a has_many :through association should always add the STI conditions of the through association

Reported by: jonathan_viney Assigned to: core
Priority: normal Milestone: 2.x
Component: ActiveRecord Version: edge
Severity: normal Keywords:
Cc:

Description

Eager loading a has_many :through association should always add the STI conditions of the through association to the query, irrespective of the type of the source reflection. Currently this only occurs if the source reflection is a has_many.

Attachments

has_many_through_always_add_sti_conditions.patch (3.3 kB) - added by jonathan_viney on 10/03/07 09:18:12.

Change History

10/03/07 09:18:12 changed by jonathan_viney

  • attachment has_many_through_always_add_sti_conditions.patch added.

10/03/07 22:28:35 changed by jonathan_viney

  • summary changed from Eager loading a has_many :through association should always add the STI conditions of the through association to [PATCH] Eager loading a has_many :through association should always add the STI conditions of the through association.