aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/cases/associations/has_many_associations_test.rb
Commit message (Expand)AuthorAgeFilesLines
* Enable `Layout/EmptyLinesAroundAccessModifier` copRyuta Kamizono2019-06-131-1/+0
* Fix preloading on AR::Relation where records are duplicated by a joinBogdan Gusiev2019-06-061-0/+5
* Give up filling schema cache before `assert_no_queries`Ryuta Kamizono2019-05-221-48/+12
* Don't track implicit `touch` mutationRyuta Kamizono2019-05-131-5/+15
* Fix `automatic_inverse_of` not to be disabled if extension block is givenRyuta Kamizono2019-04-121-8/+8
* Merge pull request #35247 from bogdan/fix-source-reflection-reset-codeRyuta Kamizono2019-02-201-3/+5
|\
| * Fix reset of the source association when through association is loadedBogdan Gusiev2019-02-201-3/+5
* | Revert "Merge pull request #35127 from bogdan/counter-cache-loading"Ryuta Kamizono2019-02-131-36/+14
* | Merge pull request #35178 from bogdan/has-many-sizeRyuta Kamizono2019-02-081-0/+15
|\ \ | |/ |/|
| * Bugfix has_many association #size when ids reader is cached and association i...Bogdan Gusiev2019-02-081-0/+15
* | Fix `CollectionProxy#concat` to return self by alias it to `#<<`Yuya Tanaka2019-02-061-1/+2
|/
* Merge pull request #35127 from bogdan/counter-cache-loadingRyuta Kamizono2019-02-051-5/+35
|\
| * Bugfix association loading behavior when counter cache is zeroBogdan Gusiev2019-02-051-5/+35
* | Ensure `StatementCache#execute` never raises `RangeError`Ryuta Kamizono2019-01-181-0/+6
* | Refs #28025 nullify *_type column on polymorphic associations on :nu… (#28...Laerti2019-01-151-0/+16
|/
* Merge pull request #34609 from kamipo/delete_all_on_collection_proxyRyuta Kamizono2018-12-041-3/+13
|\
| * Ensure that `delete_all` on collection proxy returns affected countRyuta Kamizono2018-12-041-3/+13
* | Reset scope after collection deleteGannon McGibbon2018-12-041-0/+32
|/
* Fix random CI failure due to non-deterministic sorting orderRyuta Kamizono2018-11-261-2/+2
* 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-101-0/+42
|\ \ | |/ |/|
| * Clear QueryCache when reloading associationsChristophe Maximin2018-10-101-0/+42
* | Call `define_attribute_methods` before `assert_no_queries` to address CI flak...Ryuta Kamizono2018-10-091-6/+43
* | 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-051-12/+12
* Use `assert_no_queries` not to ignore BEGIN/COMMIT queriesRyuta Kamizono2018-10-051-6/+6
* 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
* Remove unused requiresRyuta Kamizono2018-08-251-3/+1
* Add test case to test enum in has_manyRich2018-08-251-0/+22
* Add method_call_assertions and use them instead of Mochautilum2018-08-131-12/+20
* Fix `collection.create` to could be rolled back by `after_save`Ryuta Kamizono2018-06-071-0/+11
* Fix `CustomCops/AssertNot` to allow it to have failure messageRyuta Kamizono2018-05-131-1/+1
* Merge pull request #32727 from utilum/assert_dont_expectsRafael França2018-04-271-9/+13
|\
| * assert_calledutilum2018-04-261-3/+4
| * assert_not_calledutilum2018-04-261-6/+9
* | Ensure that `ids_reader` respects dirty target whether target is loaded or notRyuta Kamizono2018-04-271-2/+2
* | Loaded associations should not run a new query when size is calledGraham Turner2018-04-261-0/+74
|/
* Add test case for `collection.size` with dirty targetRyuta Kamizono2018-04-211-0/+10
* Replace `assert !` with `assert_not`Daniel Colson2018-04-191-2/+2
* Fix intermittent CI failure due to setting explicit `person.id = 10`Ryuta Kamizono2018-03-301-4/+0
* Association scope's own order should be prioritized over through scope's orderRyuta Kamizono2018-02-181-0/+7
* Deprecate update_attributes and update_attributes!Eddie Lebow2018-02-171-6/+6
* Remove extra whitespaceDaniel Colson2018-01-251-14/+14
* Use assert_empty and assert_not_emptyDaniel Colson2018-01-251-10/+10
* Use assert_predicate and assert_not_predicateDaniel Colson2018-01-251-64/+64
* Merge pull request #27561 from fishbrain/count-all-in-has-many-associationRyuta Kamizono2018-01-031-0/+8
|\
| * Use `count(:all)` in HasManyAssociation#count_recordsKlas Eskilson2017-02-071-0/+8