aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/associations/join_dependency
Commit message (Collapse)AuthorAgeFilesLines
...
* | bubble bind parameters up when building join dependenciesAaron Patterson2014-01-131-3/+10
|/
* Change syntax format for example returned valuesPrem Sichanugrist2013-11-111-5/+5
| | | | | | | | | According to our guideline, we leave 1 space between `#` and `=>`, so we want `# =>` instead of `#=>`. Thanks to @fxn for the suggestion. [ci skip]
* build the association graph functionallyAaron Patterson2013-10-212-4/+4
| | | | This lets us avoid the constant calls to Array#<<
* join_type isn't used on the node anymoreAaron Patterson2013-10-211-5/+1
|
* disconnect join_constraints from the instanceAaron Patterson2013-10-201-2/+2
|
* pass in scope chain so reflection is not neededAaron Patterson2013-10-201-2/+2
|
* pass the foreign table and class to the join_constraints methodAaron Patterson2013-10-201-4/+1
|
* pass the join type to the join_constraints methodAaron Patterson2013-10-201-1/+1
|
* stop reversing tables until we absolutely mustAaron Patterson2013-10-151-2/+2
|
* pass the chain the join_constraintsAaron Patterson2013-10-151-2/+2
|
* Merge branch 'master' into joindepAaron Patterson2013-10-152-2/+2
|\ | | | | | | | | | | | | | | | | | | | | * master: use the cached arel table Fix typo in the changelog entry Don't remove the select values to add they back again Pluck on NullRelation accepts a list of columns Conflicts: activerecord/lib/active_record/relation/finder_methods.rb
| * use the cached arel tableAaron Patterson2013-10-152-2/+2
| |
* | move column_names_with_alias on to the alias cache objectAaron Patterson2013-10-143-29/+4
| |
* | keep a cache on the alias objectAaron Patterson2013-10-141-5/+0
| |
* | move alias building to the table nodeAaron Patterson2013-10-141-4/+0
| |
* | remove delegation to `chain`Aaron Patterson2013-10-141-3/+1
| |
* | rm JoinHelper from JoinAssociationAaron Patterson2013-10-141-3/+1
| |
* | unhook `join_constraints` from the @tables ivarAaron Patterson2013-10-131-2/+2
| |
* | remove delegate methods that are not usedAaron Patterson2013-10-131-1/+1
| |
* | push the node->AR cache up one levelAaron Patterson2013-10-131-6/+1
| |
* | pull parent and alias tacker from the nodes.Aaron Patterson2013-10-113-19/+5
| | | | | | | | For now, we'll set the tables on the nodes manually.
* | decouple the `join_constraints` method from the parent pointerAaron Patterson2013-10-111-1/+1
|/
* no reason to do this column addition and subtraction businessAaron Patterson2013-10-111-1/+1
|
* refactor a little so we can remove some methodsAaron Patterson2013-10-101-3/+0
|
* delete unused codeAaron Patterson2013-10-101-10/+0
| | | | | Now that we merge trees from the top down, we don't need to search through the whole tree for particular nodes, just walk it and merge.
* simplify each method.Aaron Patterson2013-10-101-8/+2
| | | | Stop writing terrible code Aaron. This is Ruby, not Scheme
* stop creating a bunch of relation objects when we can slap all the joins on ↵Aaron Patterson2013-10-091-5/+0
| | | | at once
* add some convenient methods for avoiding array allocationsAaron Patterson2013-10-091-0/+3
|
* speed up match?Aaron Patterson2013-10-091-0/+1
|
* make node search more efficientAaron Patterson2013-10-093-0/+23
| | | | | | Rather than search every node in the tree, comparing that node and all of its parents every time, start at the root from both sides and work our way down the tree
* remove == so we can see where walking up parents occursAaron Patterson2013-10-093-15/+0
|
* push parent up to the superclassAaron Patterson2013-10-093-7/+11
| | | | We always want a linked list back to the root node.
* convert JoinBase to a tree and remove the Node classAaron Patterson2013-10-091-1/+19
|
* don't access the reflections hashAaron Patterson2013-10-081-1/+1
| | | | The reflections hash is supposed to be private, so let's use the API.
* hide join_parts internals from other classesAaron Patterson2013-10-081-11/+0
|
* decouple JoinAssociation from JoinDependencyAaron Patterson2013-10-081-9/+4
|
* Set the join type on constructionAaron Patterson2013-10-031-2/+2
| | | | | We always set the join type immediately after construction, just make it part of the constructor and we can skip that step
* simplify the JoinAssociation constructor, check validity *before*Aaron Patterson2013-10-031-6/+0
|
* parent is always passed in, so make it non-optionalAaron Patterson2013-10-031-1/+1
|
* require the files we need so the classes are stand-aloneAaron Patterson2013-10-032-0/+4
|
* remove HABTM special cases from associations classesAaron Patterson2013-10-021-11/+0
|
* WhitespacesRafael Mendonça França2013-09-111-1/+2
|
* Reduce allocations when extracting AR modelsSam2013-09-111-1/+13
|
* add a specific factory method rather than using newAaron Patterson2013-07-231-2/+2
|
* parent_table is only used internallyAaron Patterson2013-07-161-4/+4
|
* decouple the manager class from building join constraintsAaron Patterson2013-07-161-6/+6
|
* cache the klass member of the reflectionAaron Patterson2013-07-161-8/+10
|
* cache the scope chain on the stack and eliminate `i`Aaron Patterson2013-07-161-7/+4
|
* just push on to the scope chain items. Oops! (thanks @carlosantoniodasilva)Aaron Patterson2013-07-161-2/+1
|
* use Relation#merge to combine scope chain itemsAaron Patterson2013-07-161-6/+6
|