aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/associations
Commit message (Expand)AuthorAgeFilesLines
* 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
* | | | [Active Record] require => require_relativeAkira Matsuda2017-10-213-3/+3
* | | | Remove association(true) references from docs [ci skip]Eugene Kenny2017-10-161-4/+0
* | | | Joined tables in association scope doesn't use the same aliases with the pare...Ryuta Kamizono2017-10-093-13/+18
* | | | Decouple building `AliasTracker` from `JoinDependency`Ryuta Kamizono2017-10-083-14/+7
* | | | Move duplicated code to `delete_or_destroy` in `CollectionAssociation`Ryuta Kamizono2017-10-061-4/+2
* | | | Ensure `AliasTracker` respects a custom table nameRyuta Kamizono2017-09-302-2/+2
* | | | PERF: Partially recover some performance when preloading.Guo Xiang Tan2017-09-261-9/+3
* | | | Remove unused delegation to `reflection.options` in `Preloader::Association`Ryuta Kamizono2017-09-182-4/+1
* | | | The name of the key on the associated record is abstracted as `reflection.joi...Ryuta Kamizono2017-09-184-14/+5
* | | | The name of the key on the owner is abstracted as `reflection.join_foreign_key`Ryuta Kamizono2017-09-184-17/+5
* | | | Extract `associate_records_to_owner` to refactor `Preloader::Association`Ryuta Kamizono2017-09-183-20/+14
* | | | Remove the code that swapping `scope` and `options`Ryuta Kamizono2017-09-181-5/+0
* | | | Early return if `records.empty?` in `Preloader#preload`Ryuta Kamizono2017-09-181-3/+3
* | | | Don't pass `reflection_scope` to `preload_scope` if `reflection.scope` isn't ...Ryuta Kamizono2017-09-181-1/+3
* | | | Return `through_scope` only if the scope is not empty scopeRyuta Kamizono2017-09-181-4/+2
* | | | Remove useless condition in `reset_association`Ryuta Kamizono2017-09-181-2/+1