aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/cases/associations
Commit message (Expand)AuthorAgeFilesLines
* Add regression test against habtm memoized singular_idsAlberto Almagro2018-10-161-0/+12
* Ensure to test that `project.developers` is ordered by `developers.name desc`Ryuta Kamizono2018-10-151-1/+1
* Merge pull request #34122 from kamipo/generate_relation_methodsRyuta Kamizono2018-10-101-0/+1
|\
| * Generate delegation methods to named scope in the definition timeRyuta Kamizono2018-10-091-0/+1
* | Merge pull request #34094 from christophemaximin/fix-activerecord-clearing-of...Ryuta Kamizono2018-10-103-0/+89
|\ \ | |/ |/|
| * Clear QueryCache when reloading associationsChristophe Maximin2018-10-103-0/+89
* | Call `define_attribute_methods` before `assert_no_queries` to address CI flak...Ryuta Kamizono2018-10-094-9/+64
* | Fix test name to add missing "set"Ryuta Kamizono2018-10-081-1/+1
* | Fix `AssociationRelation` not to set inverse instance key just like beforeRyuta Kamizono2018-10-071-0/+12
|/
* Remove `ignore_none: false` to assert no queries more strictlyRyuta Kamizono2018-10-055-20/+20
* Use `assert_no_queries` not to ignore BEGIN/COMMIT queriesRyuta Kamizono2018-10-057-20/+20
* failing test for eager loadingMatt Jones2018-10-041-0/+5
* ActiveRecord::Associations::Preloader should not fail to preload through miss...Nikita Sokolov2018-10-021-0/+5
* Avoid extra touch queries when counter cache is updatedRyuta Kamizono2018-09-271-4/+8
* Merge pull request #31819 from bpohoriletz/masterEileen M. Uchitelle2018-09-261-0/+26
|\
| * If association is a hash-like object preloading failsBohdan Pohorilets2018-09-261-0/+26
* | Remove force parent loading when counter cache child is created/destroyedRyuta Kamizono2018-09-261-1/+5
* | Revert "Remove `counter_cache_target` which is no longer called"Ryuta Kamizono2018-09-261-1/+1
* | Update counter cache in memory if parent target is existedRyuta Kamizono2018-09-261-0/+32
|/
* Change the empty block style to have space inside of the blockRafael Mendonça França2018-09-251-1/+1
* Don't update counter cache unless the record is actually savedRyuta Kamizono2018-09-191-6/+36
* Avoid the same `foreign_key` and `counter_cache` associations on `SillyReply`Ryuta Kamizono2018-09-192-3/+3
* ActiveRecord::Associations::Preloader should preload all instances of the sam...Nikita Sokolov2018-09-161-0/+9
* Eager loading/preloading should be worked regardless of large number of recordsRyuta Kamizono2018-09-121-0/+13
* Add missing requireyuuji.yaginuma2018-08-301-0/+1
* Find inverse associations with plural namesKevin Deisz2018-08-271-0/+11
* Remove unused requiresRyuta Kamizono2018-08-251-3/+1
* Add test case to test enum in has_manyRich2018-08-251-0/+22
* Merge pull request #33162 from utilum/stop_using_mochaKasper Timm Hansen2018-08-222-14/+23
|\
| * Add method_call_assertions and use them instead of Mochautilum2018-08-132-14/+23
* | Improve test case to test enum correctlyRich2018-08-201-0/+3
* | Fix numericality validator not to be affected by custom getterRyuta Kamizono2018-08-131-1/+1
|/
* Don't share seen object cache between different join nodes in eager loadingRyuta Kamizono2018-07-031-0/+18
* `references(:developers_projects_join)` isn't needed if using `where` with ha...Ryuta Kamizono2018-06-261-16/+2
* Ensure to calculate column aliases after all table aliases are constructedRyuta Kamizono2018-06-191-2/+44
* Don't use `target=`Rafael Mendonça França2018-06-111-1/+1
* Use `-=` to change the update the collection on the associationRafael Mendonça França2018-06-111-1/+1
* Fix alias confliction when joining same table on has many through with left_j...Ryuta Kamizono2018-06-111-0/+4
* Fix `collection.create` to could be rolled back by `after_save`Ryuta Kamizono2018-06-071-0/+11
* Initialization block is a part of `build_record`Ryuta Kamizono2018-06-041-0/+12
* Fix that association's after_touch is not called with counter cacheRyuta Kamizono2018-05-271-0/+17
* Fix inconsistent touching behavior between assigning and unassigningRyuta Kamizono2018-05-271-0/+25
* Fix `belongs_to_counter_cache_after_update` to respect polymorphic type changeRyuta Kamizono2018-05-271-1/+12
* Fix `belongs_to_counter_cache_after_update` to respect custom primary key cou...Ryuta Kamizono2018-05-261-1/+7
* Fix `different_target?` to respect custom primary key counterRyuta Kamizono2018-05-261-0/+7
* Eager loading won't mutate owner recordRyuta Kamizono2018-05-251-0/+8
* Fix `CustomCops/AssertNot` to allow it to have failure messageRyuta Kamizono2018-05-133-6/+6
* Allow a belonging to object to be created from a new recordJolyon Pawlyn2018-05-011-0/+9
* Merge pull request #32727 from utilum/assert_dont_expectsRafael França2018-04-271-9/+13
|\
| * assert_calledutilum2018-04-261-3/+4