aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/associations/preloader/association.rb
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
* Fix preloader to never reset associations in case they are already loadedBogdan Gusiev2019-03-071-30/+38
* Merge pull request #35247 from bogdan/fix-source-reflection-reset-codeRyuta Kamizono2019-02-201-1/+1
|\
| * Fix reset of the source association when through association is loadedBogdan Gusiev2019-02-201-1/+1
* | 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-101-1/+7
* Don't expose accessors which are internal used onlyRyuta Kamizono2017-11-081-1/+3
* Remove useless `associated_records_by_owner`Ryuta Kamizono2017-11-071-14/+8
* Refactor Preloader CodeBogdan Gusiev2017-11-061-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-181-4/+0
* The name of the key on the associated record is abstracted as `reflection.joi...Ryuta Kamizono2017-09-181-5/+5
* The name of the key on the owner is abstracted as `reflection.join_foreign_key`Ryuta Kamizono2017-09-181-5/+5
* Extract `associate_records_to_owner` to refactor `Preloader::Association`Ryuta Kamizono2017-09-181-5/+7
* PERF: Incorrect memoization in `ActiveRecord::Associations::Preloader::Associ...Guo Xiang Tan2017-09-111-1/+5
* 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
* 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-191-0/+2
* 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-041-43/+15
* 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-021-1/+0
* Enforce frozen string in RubocopKir Shatrov2017-07-011-0/+1
* Don't expose methods and attrs for internal usageRyuta Kamizono2017-05-301-4/+3
* Add more rubocop rules about whitespacesRafael Mendonça França2016-10-291-1/+1
* 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-311-3/+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
* | normalizes indentation and whitespace across the projectXavier Noria2016-08-061-71/+71
|/
* Defer Arel attribute lookup to the model classMatthew Draper2016-02-041-1/+1
* Revert "Merge pull request #22486 from methyl/fix-includes-for-groupped-assoc...Yves Senn2015-12-211-5/+1
* Pass SQL group by values when including scoped associationLucjan Suski2015-12-151-1/+5
* Never pass `nil` to `order`Sean Griffin2015-10-291-1/+4
* Revert "Revert "Merge pull request #22026 from akihiro17/fix-preload-associat...Yves Senn2015-10-291-0/+4
* Revert "Merge pull request #22026 from akihiro17/fix-preload-association"Sean Griffin2015-10-291-4/+0
* Set `scope.reordering_value` to `true` if :reordering values are specifiedakihiro172015-10-301-0/+4
* Merge pull request #21918 from bogdan/refactor-preloaderSean Griffin2015-10-221-42/+30
|\
| * Refactored association preloader for performanceBogdan Gusiev2015-10-221-42/+30