aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/associations
Commit message (Expand)AuthorAgeFilesLines
...
* 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
* | Merge pull request #23146 from piotrj/issue_18424Ryuta Kamizono2018-01-111-0/+1
|\ \
| * | When deleting through records, take into account association conditionsPiotr Jakubowski2016-05-041-8/+9
* | | Fix `stale_state` for nested `has_many :through` associationsRyuta Kamizono2018-01-101-2/+13
* | | Merge pull request #16314 from zoltankiss/allow-nested-has-many-associations-...Ryuta Kamizono2018-01-101-1/+1
|\ \ \
| * | | Fix nested `has many :through` associations on unpersisted instancesZoltan Kiss2015-03-261-1/+1
* | | | Bring back passing single record support for `Preloader`Ryuta Kamizono2018-01-101-1/+1
* | | | Fix deleting through records when using has_many through with `source_type`Ryuta Kamizono2018-01-081-8/+6
* | | | Simply use `scope.delete_all` instead of constructing delete managerRyuta Kamizono2018-01-071-8/+1
* | | | Remove passing argument to singular and collection association readersRyuta Kamizono2018-01-051-2/+2
* | | | Merge pull request #27561 from fishbrain/count-all-in-has-many-associationRyuta Kamizono2018-01-031-1/+1
|\ \ \ \
| * | | | Use `count(:all)` in HasManyAssociation#count_recordsKlas Eskilson2017-02-071-1/+1
* | | | | Remove `association_primary_key_type` from `AssociationReflection` and `Throu...Ryuta Kamizono2018-01-011-2/+2
* | | | | Bugfix foreign key replacement in inverse associationBogdan Gusiev2017-12-272-13/+8