aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/cases/associations/eager_load_nested_include_test.rb
Commit message (Collapse)AuthorAgeFilesLines
* removes Array#random_element and backports Array#sample from Ruby 1.9, ↵Xavier Noria2010-06-051-7/+7
| | | | thanks to Marc-Andre Lafortune
* Change on Array extension from rand => random_element [#4555 state:committed]Santiago Pastorino2010-05-161-7/+7
| | | | Signed-off-by: Xavier Noria <fxn@hashref.com>
* Don't use local vars before testing its conditional.Emilio Tagua2009-08-031-2/+0
|
* Break up DependencyModule's dual function of providing a "depend_on" DSL and ↵Joshua Peek2009-05-281-1/+1
| | | | "included" block DSL into separate modules. But, unify both approaches under AS::Concern.
* Cherry-pick core extensionsJeremy Kemper2009-05-131-0/+1
|
* Use DependencyModule for included hooks in ActiveRecordBryan Helmkamp2009-05-111-7/+6
|
* Fix models load order to be able to run unit tests.Emilio Tagua2009-04-231-5/+5
| | | | | | [#2550 state:committed] Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
* Ensure NoMethodError isn't raised when some of the nested eager loaded ↵Murray Steele2009-03-121-0/+29
| | | | | | associations are empty [#1696 state:resolved] Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
* remember created records and select a random one instead of relying on ↵S. Brent Faulkner2008-08-211-12/+30
| | | | | | sequential id values starting at 1 Signed-off-by: Michael Koziarski <michael@koziarski.com>
* Move the eager load nested include tables into schema.rb and use delete_all ↵Michael Koziarski2008-02-201-64/+38
| | | | | | instead of drop table to reset the state. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8914 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Remove disconnect! in test case, it causes segfaults on sqlite3 and ↵Michael Koziarski2008-02-201-6/+2
| | | | | | completely destroys postgresql git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8908 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Remove mysql option from a test that applies to all databases. References ↵Jeremy Kemper2008-02-191-5/+4
| | | | | | #11154. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8897 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Don't assume all records from nested include are of same class. Closes ↵Jeremy Kemper2008-02-191-0/+114
#11154 [acechase] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8896 5ecf4fe2-1ee6-0310-87b1-e25e094e27de