- 12 3月, 2019 1 次提交
-
-
由 Rodrigo 提交于
Add a note explaining when the has_many associations callbacks will be called or not.
-
- 07 3月, 2019 1 次提交
-
-
由 Nathaniel Suchy 提交于
-
- 15 1月, 2019 1 次提交
-
-
由 Laerti 提交于
This PR addresses the issue described in #28025. On `dependent: :nullify` strategy only the foreign key of the relation is nullified. However on polymorphic associations the `*_type` column is not nullified leaving the record with a NULL `*_id` but the `*_type` column is present.
-
- 14 11月, 2018 2 次提交
-
-
由 Espartaco Palma 提交于
-
由 Marcel M. Cary 提交于
I was puzzled about why `collection=` was destroying the removed records on an association with `dependent: :destroy`, even after consulting the documentation for that option. I had to dive into the Active Record source to understand what was going on: eventually `collection=` calls `collection.delete` on the ousted records, and it also uses the `:dependent` option to decide how to remove records. It would have helped me to have mention of this in the documentation for `:dependent`, not just under `collection.delete` (which I found much later). Briefly mention the broader impacts of `:dependent` in the Association Basics guide. [ci skip]
-
- 29 10月, 2018 1 次提交
-
-
由 Malcolm Locke 提交于
-
- 23 10月, 2018 1 次提交
-
-
由 Raghu Kamat 提交于
This commit removes the dependent: :destroy option from the belong_to example since there is a warning associated with the usage of dependent: :destroy along with belongs_to. Based on the feedback on the issue #33914, I replaced dependent: :destroy with touch: :books_updated_at which will make the example consistent with the example that already exists on that page. * Also Removing the touch option from the belong_to scopes example as the option doesnt have any relation to association scope.
-
- 17 10月, 2018 1 次提交
-
-
由 Ryuta Kamizono 提交于
Follow up #32146.
-
- 21 9月, 2018 1 次提交
-
-
由 Ian Fleeton 提交于
Line items are a holdover from when orders were used in the examples instead of books.
-
- 24 7月, 2018 1 次提交
-
-
由 Paul McMahon 提交于
http links will be redirected to the https version, but still better to just directly link to the https version.
-
- 22 7月, 2018 1 次提交
-
-
由 K. Rodman Mannix 提交于
-
- 19 7月, 2018 1 次提交
-
-
由 Rafael Mendonça França 提交于
Revert "Merge pull request #33385 from lanzhiheng/add-example-for-has-and-belongs-to-many-association" This reverts commit 3c8c4100, reversing changes made to daee94da. We have this information below in the reference section for has_and_belongs_to_many.
-
- 18 7月, 2018 2 次提交
-
-
由 lanzhiheng 提交于
-
由 lanzhiheng 提交于
-
- 11 5月, 2018 1 次提交
-
-
由 Anthony Crumley 提交于
[ci skip] A regular expression was used to find a lot of missing Oxford commas and add them. The regular expression was as follows. ", ([a-zA-Z0-9.\`:'\"]+ ){1,6}(or|and) "
-
- 14 4月, 2018 1 次提交
-
-
由 nao0515ki 提交于
-
- 31 3月, 2018 1 次提交
-
-
由 Yoshiyuki Hirano 提交于
-
- 01 3月, 2018 1 次提交
-
-
由 abhishekkanojia 提交于
-
- 26 1月, 2018 1 次提交
-
-
由 Ryan Lue 提交于
-
- 19 1月, 2018 1 次提交
-
-
由 Tom Copeland 提交于
Updated the method counts and unified them all on numerals.
-
- 11 1月, 2018 1 次提交
-
-
由 Bart de Water 提交于
[ci skip] setting :inverse_of works with :as, :through and :polymorphic options, and is needed for bi-directionality with a scope [ci skip] Remove :conditions opion from association basics guide This got replaced by scopes.
-
- 15 12月, 2017 1 次提交
-
-
由 bogdanvlviv 提交于
- Make all `ActiveRecord::Base.find` as link - Remove redundant sentences "It also adds the additional condition that the object must be in the collection."
-
- 21 9月, 2017 1 次提交
-
-
由 Anton Chumakov 提交于
-
- 24 8月, 2017 2 次提交
-
-
由 Yauheni Dakuka 提交于
-
- 09 8月, 2017 1 次提交
-
-
由 Julia López 提交于
-
- 08 8月, 2017 1 次提交
-
-
由 Julia López 提交于
-
- 10 6月, 2017 1 次提交
-
-
由 Yohei Yasukawa 提交于
-
- 09 6月, 2017 1 次提交
-
-
由 Yauheni Dakuka 提交于
-
- 25 5月, 2017 1 次提交
-
-
由 Makoto Nihei 提交于
-
- 24 5月, 2017 1 次提交
-
-
由 willnet 提交于
-
- 06 3月, 2017 1 次提交
-
-
由 Krzysztof Maicher 提交于
-
- 03 3月, 2017 1 次提交
-
-
由 0oneo 提交于
passing `unique` parameter to belongs_to not right,
-
- 03 1月, 2017 1 次提交
-
-
由 David Sherline 提交于
Rails automatically finds bi-directional associations between models with well-named associations. However, when using non-standard naming, you have to use :inverse_of to explicitly tell Rails about the bi- directional association. With reference to #27516 [ci skip]
-
- 26 10月, 2016 1 次提交
-
-
由 James Doyley 提交于
-
- 07 9月, 2016 1 次提交
-
-
由 Neodelf 提交于
-
- 02 9月, 2016 1 次提交
-
-
由 Waitaya Krongapiradee 提交于
-
- 27 5月, 2016 1 次提交
-
-
由 Jared Beck 提交于
Because I can never remember if `collection_singular_ids=` persists or not (it does). [ci skip]
-
- 28 3月, 2016 1 次提交
-
-
由 Sammy Larbi 提交于
Passing `true` to the association has been deprecated.
-
- 12 3月, 2016 1 次提交
-
-
由 Chris Arcand 提交于
Clarifies the documentation here to mean all options are for when the relation is destroyed; also now reflects the documentation on this same option found in the has_one section.
-