aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/associations/preloader
Commit message (Expand)AuthorAgeFilesLines
* Fix preloading on AR::Relation where records are duplicated by a joinBogdan Gusiev2019-06-061-1/+3
* Fix sliced IN clauses to be groupedRyuta Kamizono2019-04-241-7/+1
* Merge pull request #35496 from bogdan/right-preloadingRyuta Kamizono2019-03-282-59/+79
|\
| * Fix preloader to never reset associations in case they are already loadedBogdan Gusiev2019-03-072-59/+79
* | Add Relation#annotate for SQL commentingMatt Yoho2019-03-211-1/+5
|/
* Fix preload with nested associationsRafael Mendonça França2019-02-261-1/+5
* Merge pull request #35247 from bogdan/fix-source-reflection-reset-codeRyuta Kamizono2019-02-202-21/+10
|\
| * Fix reset of the source association when through association is loadedBogdan Gusiev2019-02-202-21/+10
* | Refactor to just use `Association#target=` in `associate_records_to_owner`Ryuta Kamizono2019-02-091-3/+2
|/
* Don't unset foreign key when preloading missing recordEugene Kenny2018-03-241-2/+2
* Extract all `base_class.name` as `polymorphic_name`Ryuta Kamizono2018-03-041-1/+1
* Association creation and finding should work consistently (#32048)Ryuta Kamizono2018-02-261-1/+1
* Use private attr_readerRyuta Kamizono2018-02-231-2/+1
* Avoid extra calls to to_sDaniel Colson2018-01-291-2/+2
* Remove useless preloader classesRyuta Kamizono2017-11-109-85/+8
* Don't expose accessors which are internal used onlyRyuta Kamizono2017-11-081-1/+3
* 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
* 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
* 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
* 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-041-1/+1
* 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
* Through scope should not be affected by scopingRyuta Kamizono2017-08-151-11/+1
* Remove single element array preprocessRyuta Kamizono2017-07-261-1/+1
* Use frozen-string-literal in ActiveRecordKir Shatrov2017-07-199-0/+18
* Merge pull request #29033 from kamipo/make_preload_query_to_prepared_statementsSean Griffin2017-07-181-1/+1
|\
| * Make preload query to preparableRyuta Kamizono2017-07-071-1/+1
* | Fix unscoping `default_scope` for `Preloader`Ryuta Kamizono2017-07-191-1/+11
|/
* Fix preloading association with scope including joinsRyuta Kamizono2017-07-042-46/+25
* Remove unused `association_key` and `table` methods in `Preloader::Association`Ryuta Kamizono2017-07-041-10/+0
* Revert "Merge pull request #29540 from kirs/rubocop-frozen-string"Matthew Draper2017-07-029-9/+0
* Enforce frozen string in RubocopKir Shatrov2017-07-019-0/+9
* Merge pull request #29129 from kamipo/prevent_extra_through_scopeRafael França2017-06-281-2/+4
|\
| * Prevent extra `through_scope`Ryuta Kamizono2017-05-181-2/+4
* | Don't expose methods and attrs for internal usageRyuta Kamizono2017-05-303-6/+5
|/
* Remove useless `target_records_from_association`Ryuta Kamizono2017-05-041-11/+3