aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/cases/associations
Commit message (Expand)AuthorAgeFilesLines
* has_many through obeys order on through associationNeeraj Singh2013-04-042-2/+8
* Updated the error message for +find+ on an inverse_of associationwangjohn2013-04-011-2/+0
* Throwing a RecordNotFound exception when a record is scanned using thewangjohn2013-04-011-0/+18
* test-case to prevent resetting associations when preloading twice.Yves Senn2013-03-221-0/+7
* Fix some typos in AR- CHANGELOG, tests, method doc. fixedVipul A M2013-03-201-1/+1
* Calling find() on an association with an inverse will now check to seewangjohn2013-03-191-0/+25
* Merge pull request #9782 from vipulnsward/change_from_each_to_each_key_habtmRafael Mendonça França2013-03-181-2/+2
|\
| * 1. Change from each to each_value since we did not use keyVipul A M2013-03-191-2/+2
* | fix typos in AR. lots of them.Vipul A M2013-03-191-1/+1
|/
* If a counter_cache is defined, then using update_attributes and changingJohn Wang2013-03-151-0/+31
* Deprecate the `:distinct` option for `Relation#count`.Yves Senn2013-03-152-2/+2
* rename `Relation#uniq` to `Relation#distinct`. `#uniq` still works.Yves Senn2013-03-153-4/+4
* Refactored test case with standard variable namingAnupam Choudhury2013-03-081-40/+40
* 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