aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/associations
Commit message (Expand)AuthorAgeFilesLines
* 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
|/ /
* | Don't unset foreign key when preloading missing recordEugene Kenny2018-03-241-2/+2
* | Fix dependence on has_one/belongs_to relationshipsFernando Gorodscy2018-03-062-1/+10
* | Eager loading with polymorphic associations should behave consistentlyRyuta Kamizono2018-03-041-4/+2
* | Extract all `base_class.name` as `polymorphic_name`Ryuta Kamizono2018-03-044-8/+8
* | Remove staled comment for `JoinDependency#initialize`Ryuta Kamizono2018-03-021-21/+0
* | Association creation and finding should work consistently (#32048)Ryuta Kamizono2018-02-261-1/+1
* | Use private attr_readerRyuta Kamizono2018-02-233-4/+3
* | Association scope's own order should be prioritized over through scope's orderRyuta Kamizono2018-02-181-2/+2
* | Rails 6 requires Ruby 2.3+Jeremy Daer2018-02-171-5/+1
* | Fix marshaling of models with `has_many :through` associationsfatkodima2018-02-081-2/+2
* | Revert "✂️"Ryuta Kamizono2018-02-071-1/+2
* | ✂️schneems2018-02-061-2/+1
* | Avoid extra calls to to_sDaniel Colson2018-01-292-3/+3
* | Avoid passing unnecessary arguments to relationDaniel Colson2018-01-242-2/+2
* | Fix building has_one through recordRyuta Kamizono2018-01-233-14/+10
* | Don't update counter cache when through record was not destroyedEugene Kenny2018-01-141-1/+1
* | Don't pass garbage args to alias trackerRyuta Kamizono2018-01-141-10/+2