aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/associations/preloader/association.rb
Commit message (Expand)AuthorAgeFilesLines
* 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
* | Merge pull request #21033 from dgynn/preloader_build_scope_tuningArthur Nogueira Neves2015-10-041-1/+3
|\ \ | |/ |/|
| * skip _select! call unless :select values are specifiedDave Gynn2015-07-261-1/+3
* | Include association's `unscope` when preloadingJimmy Bourassa2015-09-091-1/+1
|/
* Remove most type related predicates from `Column`Sean Griffin2015-01-301-2/+2
* Don't rely on the internal representation of join valuesSean Griffin2015-01-271-1/+5
* Remove all references to `where_values` in association codeSean Griffin2015-01-251-6/+3
* Don't rely as much on the structure of the values hash in associationsSean Griffin2015-01-251-1/+1
* Return a null column from `column_for_attribute` when no column exists.Rafael Mendonça França2015-01-041-2/+2
* Go through normal `where` logic when preloading associationsSean Griffin2014-12-261-1/+1
* Fix includes on association with a scope containing joins along with conditionssiddharth@vinsol.com2014-11-211-8/+2
* Merge pull request #17360 from bronzle/includes_and_unscopedYves Senn2014-11-051-0/+1
|\
| * copy reflection_scopes’s unscoped value when building scope for preloading,...Byron Bischoff2014-10-221-0/+4
|/
* `preload` preserves readonly flag on associations. #15853Yves Senn2014-06-251-0/+4
* Add a deprecation cycle for `NullColumn` from `column_for_attribute`Sean Griffin2014-06-231-2/+2
* Use null column for association key typesSean Griffin2014-06-041-4/+2
* Fix regression on eager loading association based on SQL query ratherLauro Caetano2014-06-031-2/+4
* Merge pull request #14855 from laurocaetano/fix_polymorphic_with_string_keyYves Senn2014-05-211-4/+25
|\
| * Fix polymorphic eager load with foreign_key as String.Lauro Caetano2014-05-201-2/+17
|/