Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | explicitly including child associations that are also included in the parent ↵ | Will Bryant | 2008-10-10 | 1 | -0/+3 |
| | | | | | | | association definition should not result in double records in the collection/double loads (#1110) Signed-off-by: Michael Koziarski <michael@koziarski.com> [#1110 state:committed] | ||||
* | Merge docrails | Pratik Naik | 2008-10-05 | 1 | -3/+87 |
| | |||||
* | Remove HasManyAssociationStrategy and move the logic to ↵ | Pratik Naik | 2008-10-04 | 1 | -26/+4 |
| | | | | ActiveRecord::Reflection::ThroughReflection. | ||||
* | Fix has_many :through when the source is a belongs_to association. [#323 ↵ | Zach Dennis | 2008-10-04 | 1 | -10/+34 |
| | | | | | | state:resolved] Signed-off-by: Pratik Naik <pratiknaik@gmail.com> | ||||
* | fix eager loading's :condition sanitizing expanding against the wrong table | Will Bryant | 2008-09-29 | 1 | -5/+5 |
| | | | | Signed-off-by: Michael Koziarski <michael@koziarski.com> | ||||
* | fixed association preloading to use = instead of IN when there's only one record | rsl | 2008-09-10 | 1 | -5/+8 |
| | | | | | | [#1013 state:committed] Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net> | ||||
* | Fix preloading of has_one through associations | Frederick Cheung | 2008-08-25 | 1 | -6/+2 |
| | | | | | | [#903 state:resolved] Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net> | ||||
* | Make sure association preloading works with full STI class name [#465 ↵ | Joachim Garth | 2008-07-18 | 1 | -1/+1 |
| | | | | | | state:Resolved] Signed-off-by: Pratik Naik <pratiknaik@gmail.com> | ||||
* | Merge with docrails. | Pratik Naik | 2008-07-16 | 1 | -1/+1 |
| | |||||
* | Fix integer quoting issues in association preload. [#602 state:resolved] | Tiago Macedo | 2008-07-14 | 1 | -3/+12 |
| | | | | Signed-off-by: Pratik Naik <pratiknaik@gmail.com> | ||||
* | Fixed non-standard SQL generated by preloading has_and_belongs_to_many ↵ | Antonio Cangiano | 2008-06-11 | 1 | -2/+2 |
| | | | | association | ||||
* | When preloading group by reflection rather than by class [#125 state:resolved] | Frederick Cheung | 2008-05-11 | 1 | -6/+6 |
| | | | | | | | | This avoids extra queries when several subclasses inherit the association from their parent class, while still coping with subclasses redefining associations. Signed-off-by: Pratik Naik <pratiknaik@gmail.com> | ||||
* | Ensure hm:t preloading honours reflection options. [#137 state:resolved] | Frederick Cheung | 2008-05-11 | 1 | -5/+6 |
| | | | | Signed-off-by: Pratik Naik <pratiknaik@gmail.com> | ||||
* | Ensure correct record is returned when preloading has_one where more than ↵ | Frederick Cheung | 2008-05-06 | 1 | -1/+6 |
| | | | | | | | one row exists Signed-off-by: Michael Koziarski <michael@koziarski.com> [#73 state:closed] | ||||
* | Fixed AssociationsPreload such that it doesnt require foreign keys to be ↵ | David Heinemeier Hansson | 2008-04-30 | 1 | -11/+15 |
| | | | | integers (fcheung) [#33 state:resolved] | ||||
* | Ensure table names are quoted by the association preloading code. | Frederick Cheung | 2008-04-26 | 1 | -9/+7 |
| | | | | | | [#45 state:resolved] Signed-off-by: Michael Koziarski <michael@koziarski.com> | ||||
* | More efficient association preloading code that compacts a through_records ↵ | Rick Olson | 2008-03-26 | 1 | -8/+11 |
| | | | | | | array in a central location. Closes #11427 [danger] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9094 5ecf4fe2-1ee6-0310-87b1-e25e094e27de | ||||
* | has_one :through supports :source_type. Fix up some tests. References #4756. | Jeremy Kemper | 2008-03-22 | 1 | -2/+7 |
| | | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9075 5ecf4fe2-1ee6-0310-87b1-e25e094e27de | ||||
* | Add has_one :through support, finally. Closes #4756 [thechrisoshow] | Rick Olson | 2008-03-21 | 1 | -5/+29 |
| | | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9067 5ecf4fe2-1ee6-0310-87b1-e25e094e27de | ||||
* | Fix that batched :include would pull in duplicate records in some cases. ↵ | Jeremy Kemper | 2008-02-28 | 1 | -1/+1 |
| | | | | | | Closes #11215 [Catfish] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8942 5ecf4fe2-1ee6-0310-87b1-e25e094e27de | ||||
* | Fix preloading nil polymorphic belongs_to. Closes #11218 [matrix9180] | Jeremy Kemper | 2008-02-27 | 1 | -5/+6 |
| | | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8933 5ecf4fe2-1ee6-0310-87b1-e25e094e27de | ||||
* | Don't assume all records from nested include are of same class. Closes ↵ | Jeremy Kemper | 2008-02-19 | 1 | -1/+5 |
| | | | | | | #11154 [acechase] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8896 5ecf4fe2-1ee6-0310-87b1-e25e094e27de | ||||
* | Ensure nested preloading works when associations return nil. Closes #11145 ↵ | Michael Koziarski | 2008-02-18 | 1 | -1/+1 |
| | | | | | | [GMFlash] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8894 5ecf4fe2-1ee6-0310-87b1-e25e094e27de | ||||
* | Fixed preloading belongs_to associations which reference a custom foreign ↵ | Jeremy Kemper | 2008-01-31 | 1 | -1/+2 |
| | | | | | | key. References #9640. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8762 5ecf4fe2-1ee6-0310-87b1-e25e094e27de | ||||
* | Introduce preload query strategy for eager :includes. Closes #9640. | Jeremy Kemper | 2008-01-19 | 1 | -0/+231 |
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8672 5ecf4fe2-1ee6-0310-87b1-e25e094e27de |