aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/cases
Commit message (Collapse)AuthorAgeFilesLines
...
| * | | | | | | | | Fix broken testJon Leighton2010-10-191-1/+5
| | | | | | | | | |
| * | | | | | | | | Support the :primary_key option on a through reflection in a nested through ↵Jon Leighton2010-10-191-1/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | association
| * | | | | | | | | Support for :primary_key option on the source reflection of a through ↵Jon Leighton2010-10-192-6/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | association, where the source is a has_one or has_many
| * | | | | | | | | Respect the :primary_key option on the through_reflection of (non-nested) ↵Jon Leighton2010-10-192-2/+37
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | through associations
| * | | | | | | | | Properly support conditions on any of the reflections involved in a nested ↵Jon Leighton2010-10-196-20/+56
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | through association
| * | | | | | | | | Make sure nested through associations are read onlyJon Leighton2010-10-151-0/+42
| | | | | | | | | |
| * | | | | | | | | Add assertions for nested through associations loaded by includes with ↵Jon Leighton2010-10-151-81/+75
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | conditions (uses the single-query strategy). Currently one failure to fix.
| * | | | | | | | | Support preloading nested through associations (using the default ↵Jon Leighton2010-10-151-61/+140
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | multi-query strategy)
| * | | | | | | | | Remove unnecessary requires from nested_has_many_through_associations_test.rbJon Leighton2010-10-141-6/+0
| | | | | | | | | |
| * | | | | | | | | Add test_has_one_through_has_one_through_with_belongs_to_source_reflectionJon Leighton2010-10-141-2/+13
| | | | | | | | | |
| * | | | | | | | | Add test_has_many_through_belongs_to_with_has_many_through_source_reflection ↵Jon Leighton2010-10-141-1/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (which already passes)
| * | | | | | | | | Add test_has_many_through_has_many_through_with_belongs_to_source_reflection ↵Jon Leighton2010-10-141-1/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (which already works)
| * | | | | | | | | Added ↵Jon Leighton2010-10-142-2/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | test_has_many_through_has_many_with_has_many_through_habtm_source_reflection and make it pass
| * | | | | | | | | Merge branch 'master' into nested_has_many_throughJon Leighton2010-10-148-40/+303
| |\ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: activerecord/lib/active_record/associations.rb activerecord/test/cases/associations/cascaded_eager_loading_test.rb
| * | | | | | | | | | Add ↵Jon Leighton2010-10-131-1/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | test_has_many_through_has_and_belongs_to_many_with_has_many_source_reflection and make it work
| * | | | | | | | | | First bit of support for habtm in through assocs - ↵Jon Leighton2010-10-132-5/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | test_has_many_through_has_many_with_has_and_belongs_to_many_source_reflection now passes
| * | | | | | | | | | Add a commented, failing test for using a habtm in a has many through ↵Jon Leighton2010-10-122-6/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | association. I want to refactor how aliasing works first.
| * | | | | | | | | | Add test_has_many_through_has_one_through_with_has_many_source_reflectionJon Leighton2010-10-121-1/+18
| | | | | | | | | | |
| * | | | | | | | | | Adding test_has_many_through_has_one_with_has_many_through_source_reflection ↵Jon Leighton2010-10-121-2/+19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | and modifying ThroughAssociationScope to make it work correctly.
| * | | | | | | | | | Rename some tests for consistencyJon Leighton2010-10-121-3/+3
| | | | | | | | | | |
| * | | | | | | | | | Add test_has_many_through_has_one_throughJon Leighton2010-10-121-2/+14
| | | | | | | | | | |
| * | | | | | | | | | Support has_one through assocs as the source associationJon Leighton2010-10-121-3/+32
| | | | | | | | | | |
| * | | | | | | | | | A load of tests that need to be writtenJon Leighton2010-10-121-0/+63
| | | | | | | | | | |
| * | | | | | | | | | Add support for nested through associations in JoinAssociation. Hence ↵Jon Leighton2010-10-091-5/+54
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Foo.joins(:bar) will work for through associations. There is some duplicated code now, which will be refactored.
| * | | | | | | | | | Merge branch 'master' into nested_has_many_throughJon Leighton2010-10-065-1/+51
| |\ \ \ \ \ \ \ \ \ \
| * | | | | | | | | | | Refactoring JoinDependency and friends. This improves the code (IMO) ↵Jon Leighton2010-10-065-12/+34
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
| * | | | | | | | | | | A failing test for a nested has many through association loaded via ↵Jon Leighton2010-10-051-0/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Foo.joins(:bar)
| * | | | | | | | | | | Fix the tests (I have actually verified that these are also the 'right' ↵Jon Leighton2010-10-036-24/+24
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | fixes, rather than just making the tests pass again)
| * | | | | | | | | | | Add support for table aliasing, with a test that needs aliasing in order to ↵Jon Leighton2010-10-021-0/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | work correctly. This test incidentally provides a more complicated test case (4 inner joins, 2 using polymorphism).
| * | | | | | | | | | | Integrate nested support into ThroughAssociationScope, using my concept of ↵Jon Leighton2010-10-021-12/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | generating a 'chain' of reflections to be joined. It seems to work at the moment, all existing tests are passing. There may be further complications as we add more test cases for nested associations, though.
| * | | | | | | | | | | Started implementing nested :through associations by using the existing ↵Jon Leighton2010-10-011-13/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | structure of ThroughAssociationScope rather than layering a module over the top
| * | | | | | | | | | | Merge branch 'master' into nested_has_many_through_2Jon Leighton2010-09-3012-56/+209
| |\ \ \ \ \ \ \ \ \ \ \
| * | | | | | | | | | | | Initial nested_has_many_through support [#1152]Bodaniel Jeanes2010-09-262-8/+43
| | | | | | | | | | | | |
* | | | | | | | | | | | | Change behavior of count(:limit => x, :offset => y) to limit/offset before ↵John Mileham2011-03-032-11/+54
| |_|_|_|_|_|_|_|_|_|_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | counting.
* | | | | | | | | | | | Rewrote AssociationPreload.Jon Leighton2011-02-283-17/+16
| | | | | | | | | | | |
* | | | | | | | | | | | skip this on oracleAaron Patterson2011-02-281-0/+2
| | | | | | | | | | | |
* | | | | | | | | | | | use an attribute rather than a SQL literalAaron Patterson2011-02-261-0/+1
| | | | | | | | | | | |
* | | | | | | | | | | | removing limits and offsets from COUNT queries unless both are specified. ↵Aaron Patterson2011-02-251-0/+28
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | [#6268 state:resolved]
* | | | | | | | | | | | fixes: ActiveRecord::Base.scopes includes all scopes defined in all subclassesEric Allam2011-02-241-0/+4
| | | | | | | | | | | |
* | | | | | | | | | | | observers leak across tests, so rather than modify the object, we should ↵Aaron Patterson2011-02-231-6/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | just count the number of times the observer was called
* | | | | | | | | | | | Fix observer callbacks firing multiple times on descendant instancesKamal Fariz Mahyuddin2011-02-221-0/+14
| | | | | | | | | | | |
* | | | | | | | | | | | expectations change when using IM. Change oracle tests to reflect thatAaron Patterson2011-02-221-2/+6
| | | | | | | | | | | |
* | | | | | | | | | | | adding a test case for custom lockingAaron Patterson2011-02-211-0/+17
| | | | | | | | | | | |
* | | | | | | | | | | | Use proper objects to do the work to build the associations (adding methods, ↵Jon Leighton2011-02-212-12/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | callbacks etc) rather than calling a whole bunch of methods with rather long names.
* | | | | | | | | | | | Merge branch 'master' of git://github.com/lifo/docrailsXavier Noria2011-02-211-1/+1
|\ \ \ \ \ \ \ \ \ \ \ \
| * | | | | | | | | | | | Tpyo: fixing several cases of the theNicholas Rowe2011-02-191-1/+1
| | | | | | | | | | | | |
* | | | | | | | | | | | | oops, no need for puts!Aaron Patterson2011-02-181-1/+0
| | | | | | | | | | | | |
* | | | | | | | | | | | | AR::AttributeMethods does not need to be included in an AR::Base class.Aaron Patterson2011-02-181-0/+62
| | | | | | | | | | | | |
* | | | | | | | | | | | | fixes a merge conflictXavier Noria2011-02-191-10/+0
|/ / / / / / / / / / / /
* | | | | | | | | | | | merges docrailsXavier Noria2011-02-181-0/+10
|\ \ \ \ \ \ \ \ \ \ \ \