aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/associations
Commit message (Expand)AuthorAgeFilesLines
* Revert "Merge pull request #35127 from bogdan/counter-cache-loading"Ryuta Kamizono2019-02-132-11/+6
* Merge pull request #35196 from gmcgibbon/clarify_collection_proxy_docsGannon McGibbon2019-02-112-11/+25
|\
| * Clarify collection proxy docsGannon McGibbon2019-02-082-11/+25
* | Refactor to just use `Association#target=` in `associate_records_to_owner`Ryuta Kamizono2019-02-091-3/+2
* | Merge pull request #35178 from bogdan/has-many-sizeRyuta Kamizono2019-02-081-2/+2
|\ \ | |/ |/|
| * Bugfix has_many association #size when ids reader is cached and association i...Bogdan Gusiev2019-02-081-2/+2
* | Fix `CollectionProxy#concat` to return self by alias it to `#<<`Yuya Tanaka2019-02-062-33/+6
|/
* Merge pull request #35127 from bogdan/counter-cache-loadingRyuta Kamizono2019-02-052-16/+13
|\
| * Bugfix association loading behavior when counter cache is zeroBogdan Gusiev2019-02-052-16/+13
* | Ensure `StatementCache#execute` never raises `RangeError`Ryuta Kamizono2019-01-182-5/+1
* | Refs #28025 nullify *_type column on polymorphic associations on :nu… (#28...Laerti2019-01-153-2/+9
|/
* Merge pull request #34806 from bogdan/reuse-find-targetRyuta Kamizono2018-12-274-30/+20
|\
| * Reuse AR::Association#find_target methodBogdan Gusiev2018-12-274-29/+21
* | Merge pull request #34609 from kamipo/delete_all_on_collection_proxyRyuta Kamizono2018-12-042-0/+3
|\ \
| * | Ensure that `delete_all` on collection proxy returns affected countRyuta Kamizono2018-12-042-0/+3
| |/
* / Reset scope after collection deleteGannon McGibbon2018-12-041-4/+4
|/
* Revert "Merge pull request #34538 from bogdan/reuse-find-target"Ryuta Kamizono2018-11-283-23/+28
* Reuse code in AR::Association#find_targetBogdan Gusiev2018-11-273-29/+23
* Optimize difference and intersectionFlorian Ebeling2018-11-061-17/+9
* Rename union to intersectionFlorian Ebeling2018-11-063-3/+3
* Fix handling of duplicates for `replace` on has_many-throughFlorian Ebeling2018-11-063-3/+41
* Don't expose internal `get_value`/`set_value` methodsRyuta Kamizono2018-10-181-1/+1
* Merge pull request #34094 from christophemaximin/fix-activerecord-clearing-of...Ryuta Kamizono2018-10-103-3/+5
|\
| * Clear QueryCache when reloading associationsChristophe Maximin2018-10-103-3/+5
* | Don't expose internal methods in the associationsRyuta Kamizono2018-10-082-32/+32
* | Fix `AssociationRelation` not to set inverse instance key just like beforeRyuta Kamizono2018-10-071-0/+8
|/
* Restore `preloaders_for_one` methodRyuta Kamizono2018-10-051-5/+9
* Merge pull request #33938 from faucct/bugfix/preload_through_no_recordsEileen M. Uchitelle2018-10-041-28/+24
|\
| * ActiveRecord::Associations::Preloader should not fail to preload through miss...Nikita Sokolov2018-10-021-28/+24
* | Fix call sitesGannon McGibbon2018-10-021-1/+1
|/
* Add `Style/RedundantFreeze` to remove redudant `.freeze`Yasuo Honda2018-09-291-1/+1
* Avoid extra touch queries when counter cache is updatedRyuta Kamizono2018-09-271-2/+8
* Refactor counter cache to extract `decrement_counters_before_last_save` on th...Ryuta Kamizono2018-09-272-48/+31
* Merge pull request #31819 from bpohoriletz/masterEileen M. Uchitelle2018-09-261-4/+3
|\
| * If association is a hash-like object preloading failsBohdan Pohorilets2018-09-261-4/+3
* | Revert "Remove `counter_cache_target` which is no longer called"Ryuta Kamizono2018-09-261-1/+10
* | Update counter cache in memory if parent target is existedRyuta Kamizono2018-09-261-10/+3
|/
* Remove `counter_cache_target` which is no longer calledRyuta Kamizono2018-09-261-10/+1
* Don't update counter cache unless the record is actually savedRyuta Kamizono2018-09-193-23/+1
* ActiveRecord::Associations::Preloader should preload all instances of the sam...Nikita Sokolov2018-09-161-1/+0
* Enable Style/ParenthesesAroundCondition copRyuta Kamizono2018-08-191-1/+1
* Extract `Relation#update_counters` for internal useRyuta Kamizono2018-07-302-13/+8
* Avoid unneeded expanded column aliases array cachingRyuta Kamizono2018-07-102-8/+5
* Don't extract `readonly_value` each timeRyuta Kamizono2018-07-032-5/+7
* Don't share seen object cache between different join nodes in eager loadingRyuta Kamizono2018-07-031-2/+2
* Use `reflection.alias_candidate` in `table_alias_for`Ryuta Kamizono2018-06-261-1/+1
* Remove all `aliases` passing from `JoinDependency`Ryuta Kamizono2018-06-201-2/+2
* Remove useless `aliases` argument from `JoinDependency#construct`Ryuta Kamizono2018-06-201-5/+5
* Remove unused `rs` argument from `JoinDependency#construct`Ryuta Kamizono2018-06-201-5/+5
* Merge pull request #33158 from bogdan/cleanup-habtm-builderRyuta Kamizono2018-06-191-37/+16
|\