aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/associations
Commit message (Expand)AuthorAgeFilesLines
* 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
* PERF: Incorrect memoization in `ActiveRecord::Associations::Preloader::Associ...Guo Xiang Tan2017-09-111-1/+5
* Remove unnecessary `join_type` in `AssociationScope`Ryuta Kamizono2017-09-081-5/+1
* Don't pass `table` to `last_chain_scope` and `next_chain_scope`Ryuta Kamizono2017-09-071-17/+15
* `has_many :through` with unscope should affect to through scopeRyuta Kamizono2017-09-071-21/+14
* Don't pass unneeded `reflection` to `add_constraints`Ryuta Kamizono2017-09-051-3/+3
* Assigning `values` is only necessary when `reflection_scope.where_clause` is ...Ryuta Kamizono2017-09-051-1/+1
* Don't merge `reflection_scope` if `reflection.scope` isn't givenRyuta Kamizono2017-09-051-1/+1
* Scope in associations should treat nil as `all`Ryuta Kamizono2017-09-044-5/+7
* Fix preloading through association with custom scopeRyuta Kamizono2017-09-021-1/+6
* `values[:includes]` in `reflection_scope` is not compatible with `through_scope`Ryuta Kamizono2017-09-021-1/+6
* Don't call `scope.eager_loading?` when `reflection_scope.where_clause` is emptyRyuta Kamizono2017-09-021-10/+10
* Merge pull request #30403 from yhirano55/fix_broken_doc_for_active_recordRyuta Kamizono2017-08-267-7/+7
|\
| * Fix broken doc for Active Record [ci skip]Yoshiyuki Hirano2017-08-257-7/+7
* | Should work inverse association when eager loadingRyuta Kamizono2017-08-251-3/+3
|/
* Through scope should not be affected by scopingRyuta Kamizono2017-08-152-12/+2
* Merge pull request #27609 from kamipo/fix_association_primary_keyRafael França2017-08-141-4/+7
|\
| * Fix `reflection.association_primary_key` for `has_many` associationsRyuta Kamizono2017-08-131-4/+7
* | Delegate to `Enumerable#find` for `CollectionProxy`Ryuta Kamizono2017-08-132-17/+14
|/
* Merge pull request #29720 from gaurish/ar_find_error_message_improvementRafael França2017-08-111-1/+3
|\
| * Return Not found Ids in ActiveRecord::NotFoundGaurish Sharma2017-07-291-1/+3
* | Specify `table.name` only when `scope.table` and `table` are different (#29058)Ryuta Kamizono2017-08-111-4/+12
* | Passing `klass` to `StatementCache.new`Ryuta Kamizono2017-08-042-12/+8
|/