aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/associations
Commit message (Expand)AuthorAgeFilesLines
* Use `try` only when we're unsure if the receiver would respond_to the methodAkira Matsuda2019-08-011-1/+1
* Merge pull request #36708 from rails/has-one-polymorphic-touch-dont-cache-ass...Kasper Timm Hansen2019-07-312-12/+11
|\
| * Polymorphic has_one touch: Reset association cache result after create transa...Kasper Timm Hansen2019-07-312-12/+11
* | Use match? where we don't need MatchDataAkira Matsuda2019-07-291-1/+1
* | Merge pull request #36776 from giraffate/fix_join_middle_table_alias_when_usi...Rafael França2019-07-261-1/+1
|\ \ | |/ |/|
| * Fix join middle table alias when using HABTMTakayuki Nakata2019-07-261-1/+1
* | Merge pull request #36412 from robotdana/compact_blankRafael Mendonça França2019-07-251-1/+1
|\ \ | |/ |/|
| * Use compact_blank throughout railsDana Sherson2019-06-051-1/+1
* | Enable `Layout/EmptyLinesAroundAccessModifier` copRyuta Kamizono2019-06-135-6/+0
* | Fix preloading on AR::Relation where records are duplicated by a joinBogdan Gusiev2019-06-061-1/+3
|/
* Merge pull request #36320 from XrXr/no-doc-prependRafael França2019-05-211-1/+1
|\
| * Put :nodoc: on method that raises NoMethodErrorAlan Wu2019-05-211-1/+1
* | Fix eager loading associations with string joins not to raise NoMethodErrorRyuta Kamizono2019-05-151-2/+11
* | 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
|\ \