aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/associations
Commit message (Expand)AuthorAgeFilesLines
* Decouple building `AliasTracker` from `JoinDependency`Ryuta Kamizono2017-10-083-14/+7
* Move duplicated code to `delete_or_destroy` in `CollectionAssociation`Ryuta Kamizono2017-10-061-4/+2
* Ensure `AliasTracker` respects a custom table nameRyuta Kamizono2017-09-302-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-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
* Remove the code that swapping `scope` and `options`Ryuta Kamizono2017-09-181-5/+0
* Early return if `records.empty?` in `Preloader#preload`Ryuta Kamizono2017-09-181-3/+3
* 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
* Remove unnecessary `join_type` in `AssociationScope`Ryuta Kamizono2017-09-081-5/+1
* Don't pass `table` to `last_chain_scope` and `next_chain_scope`Ryuta Kamizono2017-09-071-17/+15
* `has_many :through` with unscope should affect to through scopeRyuta Kamizono2017-09-071-21/+14
* Don't pass unneeded `reflection` to `add_constraints`Ryuta Kamizono2017-09-051-3/+3
* 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-044-5/+7
* 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
* Merge pull request #30403 from yhirano55/fix_broken_doc_for_active_recordRyuta Kamizono2017-08-267-7/+7
|\
| * Fix broken doc for Active Record [ci skip]Yoshiyuki Hirano2017-08-257-7/+7
* | Should work inverse association when eager loadingRyuta Kamizono2017-08-251-3/+3
|/
* Through scope should not be affected by scopingRyuta Kamizono2017-08-152-12/+2
* Merge pull request #27609 from kamipo/fix_association_primary_keyRafael França2017-08-141-4/+7
|\
| * Fix `reflection.association_primary_key` for `has_many` associationsRyuta Kamizono2017-08-131-4/+7
* | Delegate to `Enumerable#find` for `CollectionProxy`Ryuta Kamizono2017-08-132-17/+14
|/
* Merge pull request #29720 from gaurish/ar_find_error_message_improvementRafael França2017-08-111-1/+3
|\
| * Return Not found Ids in ActiveRecord::NotFoundGaurish Sharma2017-07-291-1/+3
* | Specify `table.name` only when `scope.table` and `table` are different (#29058)Ryuta Kamizono2017-08-111-4/+12
* | Passing `klass` to `StatementCache.new`Ryuta Kamizono2017-08-042-12/+8
|/
* Remove single element array preprocessRyuta Kamizono2017-07-261-1/+1
* Remove useless `JoinInformation`Ryuta Kamizono2017-07-252-5/+3
* Merge pull request #29765 from lugray/fix_counter_cacheRafael França2017-07-241-3/+1
|\
| * Add test for fixed `counter_cache` double incrementLisa Ugray2017-07-191-3/+1
* | Refactor Active Record to let Arel manage bind paramsSean Griffin2017-07-242-5/+3
* | Merge pull request #29855 from lugray/has_one_destroyed_by_associationRafael França2017-07-211-0/+2
|\ \
| * | Match destroyed_by_association for has_one to has_manyLisa Ugray2017-07-211-0/+2
* | | Use frozen-string-literal in ActiveRecordKir Shatrov2017-07-1935-0/+70
|/ /
* | 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 `JoinDependency` with using a custom tableRyuta Kamizono2017-07-182-6/+9
* | Don't cache `scope_for_create`Ryuta Kamizono2017-07-162-2/+2
* | Fix `create_with` using both string and symbolRyuta Kamizono2017-07-163-9/+7
* | Remove useless `aliased_table_name` in `JoinDependency`Ryuta Kamizono2017-07-154-18/+1
|/