aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord
Commit message (Collapse)AuthorAgeFilesLines
* Support for :primary_key option on the source reflection of a through ↵Jon Leighton2010-10-1910-18/+41
| | | | 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-199-11/+65
| | | | through associations
* Properly support conditions on any of the reflections involved in a nested ↵Jon Leighton2010-10-1916-98/+235
| | | | through association
* Refactoring: replace the mix of variables like @finder_sql, @counter_sql, ↵Jon Leighton2010-10-1711-154/+138
| | | | etc with just a single scope hash (created on initialization of the proxy). This is now used consistently across all associations. Therefore, all you have to do to ensure finding/counting etc is done correctly is implement the scope correctly.
* Make sure nested through associations are read onlyJon Leighton2010-10-156-9/+82
|
* Fix small bug which was shown by the last commitJon Leighton2010-10-151-1/+1
|
* 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-152-122/+216
| | | | 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-147-4/+31
|
* Add test_has_many_through_belongs_to_with_has_many_through_source_reflection ↵Jon Leighton2010-10-142-2/+15
| | | | (which already passes)
* Add test_has_many_through_has_many_through_with_belongs_to_source_reflection ↵Jon Leighton2010-10-142-1/+13
| | | | (which already works)
* Added ↵Jon Leighton2010-10-145-4/+30
| | | | test_has_many_through_has_many_with_has_many_through_habtm_source_reflection and make it pass
* Fix bug in previous refactoringJon Leighton2010-10-141-6/+6
|
* Merge branch 'master' into nested_has_many_throughJon Leighton2010-10-1429-163/+450
|\ | | | | | | | | | | Conflicts: activerecord/lib/active_record/associations.rb activerecord/test/cases/associations/cascaded_eager_loading_test.rb
| * Do not treat information about skipped migrations as WARNINGs but as a ↵Piotr Sarnacki2010-10-141-1/+1
| | | | | | | | NOTEs, also puts to stdin
| * clear any stale connections before messing with threaded testsAaron Patterson2010-10-131-0/+1
| |
| * Update the ActiveRecord tests to not set unused optionsCarl Lerche2010-10-133-19/+0
| | | | | | This makes a test fail, but it is revealing a bug in Arel master.
| * Update the PostgreSQL adapter documentationCarl Lerche2010-10-131-2/+0
| |
| * rb_thread_select should always be used in DB drivers when available.Carl Lerche2010-10-131-1/+1
| |
| * Delete unused methods in JoinAssociationJon Leighton2010-10-131-8/+0
| |
| * Renaming and formatting changes in JoinDependencyJon Leighton2010-10-132-49/+56
| |
| * Refactor JoinDependency and friends so that a JoinAssociation can produce an ↵Jon Leighton2010-10-132-157/+266
| | | | | | | | arbitrary number of joins, which will be needed in order to support nested through associations.
| * Add some tests for functionality in JoinAssociation which already exists but ↵Jon Leighton2010-10-137-12/+43
| | | | | | | | was previously untested
| * stop using deprecated arel APIAaron Patterson2010-10-121-2/+2
| |
| * dry up column type testingAaron Patterson2010-10-121-5/+5
| |
| * all columns respond to string_to_binary, so no need to check respond_to?Aaron Patterson2010-10-123-5/+19
| |
| * drying up true and false casesAaron Patterson2010-10-121-3/+7
| |
| * reducing comparisons in when statementsAaron Patterson2010-10-121-6/+6
| |
| * removing intermediate variablesAaron Patterson2010-10-121-2/+1
| |
| * reduce the number of times we test for the column variableAaron Patterson2010-10-121-2/+5
| |
| * test quoting a string with an unknown column typeAaron Patterson2010-10-121-0/+4
| |
| * refactoring date / time / datetime when statementAaron Patterson2010-10-121-11/+8
| |
| * fixing case / when indentationAaron Patterson2010-10-121-20/+20
| |
| * test quoting multibyte chars objectAaron Patterson2010-10-121-0/+20
| |
| * test quoting strings with binary columnsAaron Patterson2010-10-121-0/+13
| |
| * test quoting a string with a float columnAaron Patterson2010-10-121-0/+5
| |
| * testing quoting a string for an int columnAaron Patterson2010-10-121-0/+12
| |
| * testing crazy object quotingAaron Patterson2010-10-121-0/+12
| |
| * test that dates / times / datetimes call quoted_dateAaron Patterson2010-10-121-0/+10
| |
| * test quoting of bigdecimalsAaron Patterson2010-10-121-0/+6
| |
| * testing floats, fixnum, and bignumsAaron Patterson2010-10-111-0/+18
| |
| * test quoting nils, true, false, idAaron Patterson2010-10-111-0/+20
| |
| * getting quoted_time under more specific testsAaron Patterson2010-10-111-0/+65
| |
| * starting to get the quote module under testAaron Patterson2010-10-111-0/+30
| |
| * we should always cast the value based on the columnAaron Patterson2010-10-111-1/+1
| |
| * removing freezeAaron Patterson2010-10-111-3/+3
| |
| * Honor distinct option when used with count operation after group clause ↵Marcelo Giorgi2010-10-112-4/+17
| | | | | | | | [#5721 state:resolved]
| * reorder removed in favor of except(:order).orderSantiago Pastorino2010-10-116-36/+5
| |
| * Merge branch 'master' of git://github.com/lifo/docrailsXavier Noria2010-10-111-1/+6
| |\