aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/associations/preloader
Commit message (Expand)AuthorAgeFilesLines
* read the association instead of sendingAaron Patterson2013-10-141-1/+3
* simplify populating the ordering hashAaron Patterson2013-10-141-10/+5
* the preloader for the RHS has all the preloaded records, so ask itAaron Patterson2013-10-141-3/+3
* only calculate offset index once. #12537Aaron Patterson2013-10-141-6/+10
* Drop unused iterator varVipul A M2013-10-131-1/+1
* remove the HABTM preloaderAaron Patterson2013-10-021-71/+0
* remove initialize methodAaron Patterson2013-09-251-4/+0
* extract association resetting to a methodAaron Patterson2013-09-251-9/+16
* hash insertion order doesn't matter anymore, so only loop over theAaron Patterson2013-09-251-4/+2
* always populate the preloaded records instance variable so we can removeAaron Patterson2013-09-252-10/+5
* keep preloaded records in a list rather than extract from a hashAaron Patterson2013-09-253-16/+21
* push slice loading to it's own method so we can remove the type castingAaron Patterson2013-09-242-24/+20
* guarantee that `klass` is not nil inside the preloader objectsAaron Patterson2013-09-241-1/+1
* eliminate unused ivarAaron Patterson2013-09-241-1/+0
* all records have a preloaded, so eliminate that conditionalAaron Patterson2013-09-241-11/+7
* eliminate the `loaded?` conditionalAaron Patterson2013-09-242-10/+1
* push preloaded test up to the factory method so we can eliminateAaron Patterson2013-09-242-6/+4
* we can't sort by lhs since the middle records have difference classesAaron Patterson2013-09-231-19/+19
* pass the preloader down so we only have to construct oneAaron Patterson2013-09-236-19/+17
* remove state from the preloaderAaron Patterson2013-09-231-10/+9
* only do the should_reset test onceAaron Patterson2013-09-231-6/+6
* fix variable names and speed up relation orderingAaron Patterson2013-09-232-16/+12
* hm:t preloading will respect order set on the RHS associationAaron Patterson2013-09-234-7/+52
* cache associated target records hashAaron Patterson2013-09-201-17/+11
* combine methods so we can reuse preloadersAaron Patterson2013-09-201-19/+18
* return a list rather than hashAaron Patterson2013-09-201-7/+13
* preserve order on the RHS queryAaron Patterson2013-09-201-0/+8
* split up construction and mutationAaron Patterson2013-09-201-1/+4
* push `run` up to preloadAaron Patterson2013-09-202-4/+11
* exposing target records on the preloaderAaron Patterson2013-09-202-16/+29
* correctly typecast keys, remove conditionals, reduce object allocationsAaron Patterson2013-08-282-7/+11
* no need to to_a the scopeAaron Patterson2013-08-281-1/+1
* remove extra flat_map arrayAaron Patterson2013-08-281-8/+9
* avoid extra empty array allocationAaron Patterson2013-08-281-10/+10
* extract owner id calculation to a methodAaron Patterson2013-08-281-1/+5
* only call to_a when we have toAaron Patterson2013-08-282-2/+6
* remove intermediate variableAaron Patterson2013-08-271-3/+1
* cache association reset calculationAaron Patterson2013-08-271-4/+4
* query the association rather than send the method for the association nameAaron Patterson2013-08-271-5/+6
* use flat_mapNeeraj Singh2013-08-031-1/+1
* don't shadow `through_scope` method name with local var.Yves Senn2013-06-301-7/+7
* Simplify/fix implementation of default scopesJon Leighton2013-06-281-2/+1
* Avoid iterating over records hash when not necessaryCarlos Antonio da Silva2013-04-071-2/+6
* each to each_value; remove unused varsVipul A M2013-04-071-1/+1
* 1. Change from each to each_value since we did not use keyVipul A M2013-03-191-1/+1
* rename `Relation#uniq` to `Relation#distinct`. `#uniq` still works.Yves Senn2013-03-151-1/+1
* don't apply invalid ordering when preloading hmt associations.Yves Senn2013-02-241-2/+2
* don't cache invalid subsets when preloading hmt associations.Yves Senn2013-02-141-1/+2
* Eager loading made to use relation's in_clause_length instead of host's one (...Boris Staal2012-12-201-1/+1
* Revert "Use flat_map { } instead of map {}.flatten"Santiago Pastorino2012-10-051-1/+1