aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/associations
Commit message (Expand)AuthorAgeFilesLines
* 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
|\
| * Removed useless utility classes inside HABTM association builderBogdan Gusiev2018-06-191-37/+16
* | Ensure to calculate column aliases after all table aliases are constructedRyuta Kamizono2018-06-193-58/+57
|/
* 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-2/+1
* Merge pull request #29939 from arthurchui/activerecord-delete-associations-loopRafael Mendonça França2018-06-111-1/+2
|\
| * Use hash lookup for deleting existing associations from `target`Arthur Chui2017-07-251-1/+2
* | Fix alias confliction when joining same table on has many through with left_j...Ryuta Kamizono2018-06-111-1/+1
* | Fix `collection.create` to could be rolled back by `after_save`Ryuta Kamizono2018-06-071-3/+9
* | Child joins should be aliased when merging relationsChalo Fernandez2018-06-061-1/+1
* | Initialization block is a part of `build_record`Ryuta Kamizono2018-06-046-14/+10
* | Fix inconsistent touching behavior between assigning and unassigningRyuta Kamizono2018-05-272-2/+3
* | Fix `belongs_to_counter_cache_after_update` to respect polymorphic type changeRyuta Kamizono2018-05-273-2/+9
* | Avoid a subquery in updating counter cacheRyuta Kamizono2018-05-261-6/+1
* | Fix `belongs_to_counter_cache_after_update` to respect custom primary key cou...Ryuta Kamizono2018-05-261-0/+13
* | Fix `different_target?` to respect custom primary key counterRyuta Kamizono2018-05-261-3/+6
* | Eager loading won't mutate owner recordRyuta Kamizono2018-05-252-11/+19
* | Don't expose `SingularAssociation#replace` which is internal APIRyuta Kamizono2018-05-163-47/+44
* | Allow a belonging to object to be created from a new recordJolyon Pawlyn2018-05-012-4/+8
* | Ensure that `ids_reader` respects dirty target whether target is loaded or notRyuta Kamizono2018-04-271-1/+3
* | Loaded associations should not run a new query when size is calledGraham Turner2018-04-261-1/+3
* | Merge pull request #32514 from samdec/multiple-has-one-through-associations-b...Ryuta Kamizono2018-04-221-1/+5
|\ \
| * | Fix .new with multiple through associationsSam DeCesare2018-04-091-1/+5
* | | `target` in `CollectionAssociation` is always an arrayRyuta Kamizono2018-04-211-2/+2
* | | Can preload associations through polymorphic associationsDana Sherson2018-04-201-10/+15
|/ /