aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/associations
Commit message (Expand)AuthorAgeFilesLines
* 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
* | | | Fix conflicts `counter_cache` with `touch: true` by optimistic locking.bogdanvlviv2017-12-122-5/+9
* | | | Provide arguments to RecordNotFoundNikita Misharin2017-11-251-1/+7
* | | | Consolidate duplicated `to_ary`/`to_a` definitions in `Relation` and `Collect...Ryuta Kamizono2017-11-101-4/+6
* | | | Remove useless preloader classesRyuta Kamizono2017-11-1010-104/+15
* | | | Don't expose accessors which are internal used onlyRyuta Kamizono2017-11-082-3/+6
* | | | Don't expose internal methods in `Preloader::ThroughAssociation`Ryuta Kamizono2017-11-081-8/+7
* | | | Remove useless `associated_records_by_owner`Ryuta Kamizono2017-11-072-16/+10
* | | | Refactor Preloader CodeBogdan Gusiev2017-11-063-81/+40
* | | | Fix preloading polymorphic multi-level through associationRyuta Kamizono2017-11-061-1/+7
* | | | Fix preloading polymorphic association when through association has already l...Ryuta Kamizono2017-11-061-4/+16
* | | | Merge pull request #31005 from shuheiktgw/remove_unnecessary_semicolonsMatthew Draper2017-10-281-1/+1
* | | | fix initial countpavel2017-10-271-1/+1
* | | | Ensure associations doesn't table name collide with aliased joinsRyuta Kamizono2017-10-241-1/+1
* | | | Ensure associations doesn't table name collide with string joinsRyuta Kamizono2017-10-231-4/+6