aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/associations
Commit message (Expand)AuthorAgeFilesLines
* Namespace association extension modules under the owner modelJean Boussier2019-05-021-2/+2
* Fix merging left_joins to maintain its own `join_type` contextRyuta Kamizono2019-04-271-9/+10
* Merge pull request #35869 from abhaynikam/35866-add-touch-option-for-has-one-...Ryuta Kamizono2019-04-251-2/+34
|\
| * Adds touch option to has_one associationAbhay Nikam2019-04-251-2/+34
* | Fix sliced IN clauses to be groupedRyuta Kamizono2019-04-241-7/+1
|/
* Merge pull request #36070 from imechemi/fix-minor-api-docRyuta Kamizono2019-04-241-1/+1
|\
| * Fix rdoc rendering for push alias symbolTenzin Chemi2019-04-231-1/+1
* | Rename local variable `n` to `name`Ryuta Kamizono2019-04-241-2/+2
|/
* Make association builder methods privateRyuta Kamizono2019-04-246-0/+15
* Fix `automatic_inverse_of` not to be disabled if extension block is givenRyuta Kamizono2019-04-122-30/+10
* Association loading isn't to be affected by scoping consistentlyRyuta Kamizono2019-04-051-1/+1
* `preloaded_records` no longer includes `nil` since #35496Ryuta Kamizono2019-04-051-1/+0
* Merge pull request #35799 from leboshi/masterRyuta Kamizono2019-03-311-11/+4
|\
| * Fix callbacks on has_many :through associations (#33249)Ryan Kerr2019-03-301-10/+4
|/
* Merge pull request #35496 from bogdan/right-preloadingRyuta Kamizono2019-03-283-64/+90
|\
| * Fix preloader to never reset associations in case they are already loadedBogdan Gusiev2019-03-073-64/+90
* | Add Relation#annotate for SQL commentingMatt Yoho2019-03-211-1/+5
* | Merge pull request #35121 from utilum/warning_tried_to_create_proc_without_blockKasper Timm Hansen2019-03-101-2/+2
|\ \ | |/ |/|
| * Ruby 2.7 warning: creating a Proc without a blockutilum2019-02-131-2/+2
* | Fix preload with nested associationsRafael Mendonça França2019-02-261-1/+5
* | Merge pull request #35247 from bogdan/fix-source-reflection-reset-codeRyuta Kamizono2019-02-202-21/+10
|\ \
| * | Fix reset of the source association when through association is loadedBogdan Gusiev2019-02-202-21/+10
* | | Fix eager loading polymorphic association with mixed table conditionsRyuta Kamizono2019-02-181-6/+11
* | | Revert "Merge pull request #35127 from bogdan/counter-cache-loading"Ryuta Kamizono2019-02-132-11/+6
| |/ |/|
* | Merge pull request #35196 from gmcgibbon/clarify_collection_proxy_docsGannon McGibbon2019-02-112-11/+25
|\ \
| * | Clarify collection proxy docsGannon McGibbon2019-02-082-11/+25
| |/
* | Refactor to just use `Association#target=` in `associate_records_to_owner`Ryuta Kamizono2019-02-091-3/+2
* | Merge pull request #35178 from bogdan/has-many-sizeRyuta Kamizono2019-02-081-2/+2
|\ \ | |/ |/|
| * Bugfix has_many association #size when ids reader is cached and association i...Bogdan Gusiev2019-02-081-2/+2
* | Fix `CollectionProxy#concat` to return self by alias it to `#<<`Yuya Tanaka2019-02-062-33/+6
|/
* Merge pull request #35127 from bogdan/counter-cache-loadingRyuta Kamizono2019-02-052-16/+13
|\
| * Bugfix association loading behavior when counter cache is zeroBogdan Gusiev2019-02-052-16/+13
* | Ensure `StatementCache#execute` never raises `RangeError`Ryuta Kamizono2019-01-182-5/+1
* | Refs #28025 nullify *_type column on polymorphic associations on :nu… (#28...Laerti2019-01-153-2/+9
|/
* Merge pull request #34806 from bogdan/reuse-find-targetRyuta Kamizono2018-12-274-30/+20
|\
| * Reuse AR::Association#find_target methodBogdan Gusiev2018-12-274-29/+21
* | Merge pull request #34609 from kamipo/delete_all_on_collection_proxyRyuta Kamizono2018-12-042-0/+3
|\ \
| * | Ensure that `delete_all` on collection proxy returns affected countRyuta Kamizono2018-12-042-0/+3
| |/
* / Reset scope after collection deleteGannon McGibbon2018-12-041-4/+4
|/
* Revert "Merge pull request #34538 from bogdan/reuse-find-target"Ryuta Kamizono2018-11-283-23/+28
* Reuse code in AR::Association#find_targetBogdan Gusiev2018-11-273-29/+23
* Optimize difference and intersectionFlorian Ebeling2018-11-061-17/+9
* Rename union to intersectionFlorian Ebeling2018-11-063-3/+3
* Fix handling of duplicates for `replace` on has_many-throughFlorian Ebeling2018-11-063-3/+41
* Don't expose internal `get_value`/`set_value` methodsRyuta Kamizono2018-10-181-1/+1
* Merge pull request #34094 from christophemaximin/fix-activerecord-clearing-of...Ryuta Kamizono2018-10-103-3/+5
|\
| * Clear QueryCache when reloading associationsChristophe Maximin2018-10-103-3/+5
* | Don't expose internal methods in the associationsRyuta Kamizono2018-10-082-32/+32
* | Fix `AssociationRelation` not to set inverse instance key just like beforeRyuta Kamizono2018-10-071-0/+8
|/
* Restore `preloaders_for_one` methodRyuta Kamizono2018-10-051-5/+9