aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/associations.rb
Commit message (Collapse)AuthorAgeFilesLines
...
* | Merge branch 'master' into nested_has_many_throughJon Leighton2010-11-271-552/+8
|\| | | | | | | | | | | Conflicts: activerecord/CHANGELOG activerecord/lib/active_record/associations.rb
| * breaking classes up in to respective filesAaron Patterson2010-11-231-574/+1
| |
| * class inheritable attributes is used no more! all internal use of class ↵Josh Kalderimis2010-11-201-6/+7
| | | | | | | | | | | | inheritable has been changed to class_attribute. class inheritable attributes has been deprecated. Signed-off-by: José Valim <jose.valim@gmail.com>
* | Merge branch 'master' into nested_has_many_throughJon Leighton2010-11-171-1/+1
|\| | | | | | | | | | | Conflicts: activerecord/lib/active_record/associations/has_many_through_association.rb activerecord/test/cases/associations/has_many_through_associations_test.rb
| * use persisted? instead of new_record? wherever possibleDavid Chelimsky2010-11-091-1/+1
| | | | | | | | | | | | | | | | | | | | | | - persisted? is the API defined in ActiveModel - makes it easier for extension libraries to conform to ActiveModel APIs without concern for whether the extended object is specifically ActiveRecord [#5927 state:committed] Signed-off-by: Santiago Pastorino <santiago@wyeworks.com>
* | Merge branch 'master' into nested_has_many_throughJon Leighton2010-11-081-20/+18
|\| | | | | | | | | Conflicts: activerecord/lib/active_record/associations.rb
| * reduce duplication in assiciations #construct()Aaron Patterson2010-11-061-9/+3
| |
| * make sure we keep parent records in orderAaron Patterson2010-11-061-6/+6
| |
| * only call to_s on the association variable onceAaron Patterson2010-11-051-2/+5
| |
| * simplify instantiate in the join parts objectAaron Patterson2010-11-051-8/+7
| |
| * index is not used, so removing itAaron Patterson2010-11-051-1/+1
| |
| * reduce method calls to the join base objectAaron Patterson2010-11-051-4/+6
| |
* | Fix naughty trailing whitespaceJon Leighton2010-10-311-49/+49
| |
* | Merge branch 'master' into nested_has_many_throughJon Leighton2010-10-311-11/+38
|\| | | | | | | | | | | Conflicts: activerecord/lib/active_record/associations/has_many_association.rb activerecord/lib/active_record/associations/through_association_scope.rb
| * refactoring find_join_associationAaron Patterson2010-10-301-5/+6
| |
| * Fix issues when including the same association multiple times and mixing ↵Ernie Miller2010-10-301-11/+37
| | | | | | | | joins/includes together.
* | Merge branch 'master' into nested_has_many_throughJon Leighton2010-10-281-16/+16
|\| | | | | | | | | | | | | | | Conflicts: activerecord/CHANGELOG activerecord/lib/active_record/association_preload.rb activerecord/lib/active_record/associations.rb activerecord/test/schema/schema.rb
| * removing space errorsAaron Patterson2010-10-221-45/+45
| |
| * Delete unused methods in JoinAssociationJon Leighton2010-10-131-8/+0
| |
| * Renaming and formatting changes in JoinDependencyJon Leighton2010-10-131-47/+51
| |
| * Refactor JoinDependency and friends so that a JoinAssociation can produce an ↵Jon Leighton2010-10-131-145/+265
| | | | | | | | arbitrary number of joins, which will be needed in order to support nested through associations.
* | Fix typoJon Leighton2010-10-191-1/+1
| |
* | Remove obsolete autoloadJon Leighton2010-10-191-1/+0
| |
* | Add some API documentation about nested through associationsJon Leighton2010-10-191-8/+52
| |
* | Remove various comments and code which were just being used during the ↵Jon Leighton2010-10-191-8/+0
| | | | | | | | development of nested through association support (OMFGZ, I might just have nearly finished this\!
* | Small refactoringJon Leighton2010-10-191-6/+2
| |
* | Bugfix/refactoringJon Leighton2010-10-191-6/+6
| |
* | Support for :primary_key option on the source reflection of a through ↵Jon Leighton2010-10-191-6/+4
| | | | | | | | association, where the source is a has_one or has_many
* | Properly support conditions on any of the reflections involved in a nested ↵Jon Leighton2010-10-191-6/+9
| | | | | | | | through association
* | Make sure nested through associations are read onlyJon Leighton2010-10-151-0/+6
| |
* | Fix small bug which was shown by the last commitJon Leighton2010-10-151-1/+1
| |
* | First bit of support for habtm in through assocs - ↵Jon Leighton2010-10-131-10/+35
| | | | | | | | test_has_many_through_has_many_with_has_and_belongs_to_many_source_reflection now passes
* | Some small tweaks on the last commitJon Leighton2010-10-121-17/+5
| |
* | Extract aliasing code from JoinDependency and JoinAssociation into a ↵Jon Leighton2010-10-121-41/+15
| | | | | | | | separate AliasTracker class. This can then be used by ThroughAssociationScope as well.
* | Refactoring to remove duplication introduced by the last commitJon Leighton2010-10-101-160/+145
| |
* | Add support for nested through associations in JoinAssociation. Hence ↵Jon Leighton2010-10-091-89/+85
| | | | | | | | Foo.joins(:bar) will work for through associations. There is some duplicated code now, which will be refactored.
* | Refactoring JoinDependency and friends. This improves the code (IMO) ↵Jon Leighton2010-10-061-183/+307
| | | | | | | | including adding some explanatory comments, but more importantly structures it in such a way as to allow a JoinAssociation to produce an arbitrary number of actual joins, which will be necessary for nested has many through support. Also added 3 tests covering functionality which existed but was not previously covered.
* | Initial nested_has_many_through support [#1152]Bodaniel Jeanes2010-09-261-0/+1
|/
* avoid a proc objectAaron Patterson2010-09-221-1/+1
|
* avoid creating a range objectAaron Patterson2010-09-221-1/+1
|
* drying up construct_associationAaron Patterson2010-09-211-15/+15
|
* dry up some conditionalsAaron Patterson2010-09-211-3/+4
|
* fixing case / when indentationAaron Patterson2010-09-211-19/+19
|
* fix case / when indentationAaron Patterson2010-09-211-18/+18
|
* avoid a hash lookupAaron Patterson2010-09-211-2/+2
|
* refacoring duplicate code. <3 <3 <3Aaron Patterson2010-09-211-2/+3
|
* this reject can be replaced with compactAaron Patterson2010-09-211-1/+1
|
* removing unused codeAaron Patterson2010-09-211-2/+1
|
* remove some repeated codeAaron Patterson2010-09-211-2/+2
|
* break up giant methodAaron Patterson2010-09-211-62/+72
|