aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/cases/associations
Commit message (Expand)AuthorAgeFilesLines
* Refactored and removed unnecessary lines in the test caseAnupam Choudhury2013-03-071-3/+3
* Expand order(:symbol) to "table".symbol to prevent broken queries on PG.Yves Senn2013-02-251-1/+6
* Remove warningRafael Mendonça França2013-02-241-1/+1
* don't apply invalid ordering when preloading hmt associations.Yves Senn2013-02-241-0/+5
* test case to prevent duplicated associations with custom PK.Yves Senn2013-02-241-0/+10
* don't cache invalid subsets when preloading hmt associations.Yves Senn2013-02-141-0/+6
* Prevent Relation#merge from collapsing wheres on the RHSJon Leighton2013-01-271-0/+7
* Fix cases where delete_records on a has_many association caused errorsDerek Kraan2013-01-271-1/+19
* Remove obsolete test fileJon Leighton2013-01-251-35/+0
* A test case name needs to start with "test_"Akira Matsuda2013-01-231-1/+1
* Preload some join table schemasAkira Matsuda2013-01-221-0/+9
* Revert "Merge pull request #8989 from robertomiranda/use-rails-4-find-by"Guillermo Iguaran2013-01-186-21/+21
* Merge pull request #8989 from robertomiranda/use-rails-4-find-byGuillermo Iguaran2013-01-186-21/+21
|\
| * User Rails 4 find_byrobertomiranda2013-01-186-21/+21
* | Undeprecate the :extend optionJon Leighton2013-01-181-0/+12
* | CollectionProxy should be default scopedJon Leighton2013-01-181-0/+5
* | `CollectionAssociation#empty?` respects newly builded recordsYves Senn2013-01-131-0/+7
|/
* Merge pull request #8568 from inossidabile/fix-in_clause_lengthJon Leighton2013-01-111-7/+7
|\
| * Eager loading made to use relation's in_clause_length instead of host's one (...Boris Staal2012-12-201-7/+7
* | deprecate `assert_blank` and `assert_present`.Yves Senn2013-01-051-2/+2
* | Fix undefined method `to_i' introduced since 3.2.8Jason Stirk2013-01-041-0/+12
* | Rename update_attributes method to update, keep update_attributes as an aliasAmparo Luna + Guillermo Iguaran2013-01-033-8/+9
* | Standardize the use of current_adapter?Rafael Mendonça França2013-01-011-1/+1
|/
* Fix for has_many_through counter_cache bugMatthew Robertson2012-12-141-0/+11
* Move where with blank conditions test to the correct where tests fileCarlos Antonio da Silva2012-12-071-6/+0
* Ensure there won't be any regression with where(nil) callsCarlos Antonio da Silva2012-12-071-1/+1
* Merge pull request #8332 from amatsuda/ar_where_chainCarlos Antonio da Silva2012-12-071-1/+1
|\
| * Relation.where with no args can be chained with not, like, and not_likeAkira Matsuda2012-11-301-1/+1
* | Do not instantiate intermediate AR objects when eager loading.Yves Senn2012-12-041-0/+6
* | Remove not used variable warnignsCarlos Antonio da Silva2012-12-011-4/+4
* | User assert_kind_of, invert assert_equal expectationsCarlos Antonio da Silva2012-11-293-9/+9
* | Added STI support to init and building associationsJason Rush2012-11-293-0/+86
|/
* Corrects typo in test nameAndy Lindeman2012-11-261-1/+1
* Merge pull request #8291 from senny/8265_build_with_polymorphic_associationRafael Mendonça França2012-11-221-0/+8
|\
| * prevent mass assignment of polymorphic type when using `build`Yves Senn2012-11-221-0/+8
* | Deprecate Relation#sum with a block.Carlos Antonio da Silva2012-11-211-0/+6
|/
* Test for has_many bug on unsaved recordsGeorge Brocklehurst2012-11-161-0/+7
* Merge and add tests related to 5215Vipul A M2012-11-123-18/+25
* Do not create useless database transaction when building `has_one` association.Bogdan Gusiev2012-11-101-0/+6
* Merge pull request #8116 from senny/7993_configure_counter_cache_for_has_manyJon Leighton2012-11-091-0/+8
|\
| * :counter_cache option for to support custom named counter caches. Closes #7993Yves Senn2012-11-041-0/+8
* | Delegate all calculations to the scope.Jon Leighton2012-11-091-0/+1
* | CollectionProxy#pluck issues no query for a new_record? ownerJon Leighton2012-11-091-0/+1
* | Relations built off collection associations with an unsaved owner should be n...Jon Leighton2012-11-091-0/+9
|/
* Fix issue with collection associations and first(n)/last(n)Carlos Antonio da Silva2012-11-011-0/+13
* Merge pull request #7887 from senny/remove_unused_requires_in_ar_testsVijay Dev2012-10-101-1/+0
|\
| * remove duplicated require statements in AR test casesYves Senn2012-10-091-1/+0
* | Fix has_many assocation w/select load after createErnie Miller2012-10-051-0/+8
|/
* Revert "Use flat_map { } instead of map {}.flatten"Santiago Pastorino2012-10-052-2/+2
* Use flat_map { } instead of map {}.flattenSantiago Pastorino2012-10-052-2/+2