aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/associations/preloader
Commit message (Expand)AuthorAgeFilesLines
* 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
* Add more rubocop rules about whitespacesRafael Mendonça França2016-10-292-4/+4
* Merge pull request #26379 from kamipo/remove_unnecessary_query_scopeAndrew White2016-09-051-4/+0
|\
| * Remove unnecessary `query_scope`Ryuta Kamizono2016-08-161-4/+0
* | Ensure that inverse associations are set before running callbacksSean Griffin2016-08-313-5/+17
* | Merge pull request #24099 from k0kubun/preserve-readonlyRafael Mendonça França2016-08-181-1/+1
|\ \ | |/ |/|
| * Preserve readonly flag only for readonly associationTakashi Kokubun2016-07-301-1/+1
* | Add `Style/EmptyLines` in `.rubocop.yml` and remove extra empty linesRyuta Kamizono2016-08-071-1/+0
* | applies remaining conventions across the projectXavier Noria2016-08-063-6/+0
* | normalizes indentation and whitespace across the projectXavier Noria2016-08-064-117/+117
|/