aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/associations/preloader/through_association.rb
Commit message (Expand)AuthorAgeFilesLines
* Merge pull request #35496 from bogdan/right-preloadingRyuta Kamizono2019-03-281-29/+41
|\
| * Fix preloader to never reset associations in case they are already loadedBogdan Gusiev2019-03-071-29/+41
* | Add Relation#annotate for SQL commentingMatt Yoho2019-03-211-1/+5
|/
* Fix preload with nested associationsRafael Mendonça França2019-02-261-1/+5
* Fix reset of the source association when through association is loadedBogdan Gusiev2019-02-201-20/+9
* Remove useless preloader classesRyuta Kamizono2017-11-101-1/+1
* Don't expose internal methods in `Preloader::ThroughAssociation`Ryuta Kamizono2017-11-081-8/+7
* Remove useless `associated_records_by_owner`Ryuta Kamizono2017-11-071-2/+2
* Refactor Preloader CodeBogdan Gusiev2017-11-061-69/+38
* 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
* Remove unused delegation to `reflection.options` in `Preloader::Association`Ryuta Kamizono2017-09-181-0/+1
* 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
* Assigning `values` is only necessary when `reflection_scope.where_clause` is ...Ryuta Kamizono2017-09-051-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
* Use frozen-string-literal in ActiveRecordKir Shatrov2017-07-191-0/+2
* Fix preloading association with scope including joinsRyuta Kamizono2017-07-041-3/+10
* 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
* 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-301-1/+1
|/
* Remove useless `target_records_from_association`Ryuta Kamizono2017-05-041-11/+3
* Add more rubocop rules about whitespacesRafael Mendonça França2016-10-291-3/+3
* Add `Style/EmptyLines` in `.rubocop.yml` and remove extra empty linesRyuta Kamizono2016-08-071-1/+0
* normalizes indentation and whitespace across the projectXavier Noria2016-08-061-32/+32
* Merge pull request #18766 from yasyf/issue_17864Sean Griffin2016-02-291-8/+15
|\
| * Honour the order of the joining model in a `has_many :through`Yasyf Mohamedali2015-03-021-8/+15
* | Merge pull request #19423 from yuroyoro/fix_performance_regression_of_preload...Aaron Patterson2015-12-181-2/+7
|\ \
| * | Read already loaded association records from association.targetTomohito Ozaki2015-04-171-2/+7
| |/
* / Never pass `nil` to `order`Sean Griffin2015-10-291-1/+3
|/
* Remove all references to `where_values` in association codeSean Griffin2015-01-251-3/+2
* Don't access the where values hash directly in through associationsSean Griffin2015-01-251-1/+1
* Use bind values for joined tables in where statementsSean Griffin2014-11-011-0/+1
* Spelling errorsjbsmith862014-08-141-1/+1
* reset `@arel` when modifying a Relation in place.Yves Senn2014-04-241-1/+1
* Replace map.flatten with flat_map in activerecordErik Michaels-Ober2014-03-031-1/+1
* read the association instead of sendingAaron Patterson2013-10-141-1/+3
* simplify populating the ordering hashAaron Patterson2013-10-141-10/+5
* the preloader for the RHS has all the preloaded records, so ask itAaron Patterson2013-10-141-3/+3
* only calculate offset index once. #12537Aaron Patterson2013-10-141-6/+10
* Drop unused iterator varVipul A M2013-10-131-1/+1
* remove initialize methodAaron Patterson2013-09-251-4/+0
* extract association resetting to a methodAaron Patterson2013-09-251-9/+16
* always populate the preloaded records instance variable so we can removeAaron Patterson2013-09-251-7/+4
* keep preloaded records in a list rather than extract from a hashAaron Patterson2013-09-251-2/+8