- 23 8月, 2020 1 次提交
-
-
由 soartec-lab 提交于
-
- 08 7月, 2020 1 次提交
-
-
由 Eugene Kenny 提交于
-
- 20 6月, 2020 1 次提交
-
-
由 Santiago Bartesaghi 提交于
-
- 01 6月, 2020 1 次提交
-
-
由 Aaron Brager 提交于
Co-authored-by: NJonathan Hefner <jonathan@hefner.pro>
-
- 20 5月, 2020 1 次提交
-
-
由 Jesse Parsons 提交于
Co-authored-by: NJonathan Hefner <jonathan@hefner.pro>
-
- 07 1月, 2020 1 次提交
-
-
由 Julian Nadeau 提交于
If we defined a callback before an association that updates the object, then this may end up being manipulated to being `false` when it should be `true`. We guard this be only defining it once. The implication of it being false, in this case, is that the children aren't updated with the parent_id and so they fail to associate to one another. See https://github.com/rails/rails/issues/38120 for more details
-
- 13 12月, 2019 1 次提交
-
-
由 Kevin Jacoby 提交于
Using words such as 'just', 'simply' and 'easy' implies to the reader that the tasks they are trying to accomplish are tasks that anyone can do, which might then frustrate them if they find it difficult to complete. This commit rephrases some usage of these words to aid understanding in the readers without making them feel belittled. [ci skip]
-
- 23 4月, 2019 1 次提交
-
-
由 Alberto Almagro 提交于
In #35861 documentation for `after_save_commit` was added, but also old documentation was adapted. I think adapting the old documentation is not necessary because there are already examples for `after_commit` on `:destroy` above. On top of that the action invoked by the callback on `:destroy` (`:log_user_saved_to_db`) talks about saving when the object is destroyed, which can be misleading. As I believe the documentation added by #35861 is already enough this patch removes the modified part, which made sense before adding docs for `after_save_commit` but is already covered by other parts of this guide.
-
- 05 4月, 2019 1 次提交
-
-
由 Sharang Dashputre 提交于
-
- 23 2月, 2019 1 次提交
-
-
由 Shivam Jain 提交于
-
- 19 2月, 2019 4 次提交
-
-
由 Ryuta Kamizono 提交于
This reverts commit 6b69ae51, reversing changes made to 84bd9ada. Reason: We already use "happen" a lots for callbacks and validations. https://github.com/rails/rails/pull/35324#issuecomment-465096483 [ci skip]
-
由 Sharang Dashputre 提交于
Change 'happen' to a more technical term
-
由 Shodai Suzuki 提交于
-
由 Shodai Suzuki 提交于
-
- 14 9月, 2018 1 次提交
-
-
由 Robbert Brak 提交于
-
- 20 8月, 2018 1 次提交
-
-
由 Fabian Schwahn 提交于
-
- 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.
-
- 15 7月, 2018 1 次提交
-
-
由 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) "
-
- 18 2月, 2018 1 次提交
-
-
由 Eddie Lebow 提交于
Closes #31998
-
- 13 11月, 2017 1 次提交
-
-
由 Avneet Singh Malhotra 提交于
-
- 16 8月, 2017 1 次提交
-
-
由 Jon Moss 提交于
Changed sentence to be more clear [ci skip]
-
- 25 7月, 2017 1 次提交
-
-
由 jagdeepsingh 提交于
-
- 10 4月, 2017 2 次提交
-
-
由 Jon Moss 提交于
Users could have more than one `before_destroy` callback in their models. [ci skip]
-
由 vishalzambre 提交于
Updated text
-
- 05 4月, 2017 1 次提交
-
-
由 Alessandro Dal Grande 提交于
-
- 18 2月, 2017 1 次提交
-
-
由 yuuji.yaginuma 提交于
Follow up to #27608
-
- 25 12月, 2016 1 次提交
-
-
由 Akira Matsuda 提交于
-
- 04 9月, 2016 1 次提交
-
-
由 Nathan Wenneker 提交于
07d3d402 changed how exceptions are handled in after_commit and after_destroy callbacks. This commit updates the 5.0 release notes and the ActiveRecord callback guide to reflect the new behavior. [ci skip]
-
- 15 8月, 2016 1 次提交
-
-
由 Eugene Kenny 提交于
The `increment!` and `decrement!` methods were recently reimplemented to make them safe to call from multiple connections concurrently. This changed their behaviour in a few ways. Previously they used `update_attribute`, which calls the attribute setter method, runs callbacks, and touches the record. Now they behave more like `update_column`, writing the update to the database directly and bypassing all of those steps.
-
- 14 6月, 2016 1 次提交
-
-
由 wynksaiddestroy 提交于
The beginning of the note on the :on option is not capitalised correctly. The :destroy symbol in the after_commit example is unnecessarily wrapped in an array.
-
- 19 1月, 2016 1 次提交
-
-
由 Vipul A M 提交于
Mention that halting chain does not re-raise `ActiveRecord::RecordInvalid` exception as well, similar to `ActiveRecord::Rollback` Fixes #22297 [ci skip]
-
- 16 12月, 2015 1 次提交
-
-
由 Genadi Samokovarov 提交于
It's pretty common for folks to monkey patch `ActiveRecord::Base` to work around an issue or introduce extra functionality. Instead of shoving even more stuff in `ActiveRecord::Base`, `ApplicationRecord` can hold all those custom work the apps may need. Now, we don't wanna encourage all of the application models to inherit from `ActiveRecord::Base`, but we can encourage all the models that do, to inherit from `ApplicationRecord`. Newly generated applications have `app/models/application_record.rb` present by default. The model generators are smart enough to recognize that newly generated models have to inherit from `ApplicationRecord`, but only if it's present.
-
- 07 12月, 2015 1 次提交
-
-
由 Genadi Samokovarov 提交于
Those are actually shortcuts for `after_commit`. Before: after_commit :add_to_index_later, on: :create after_commit :update_in_index_later, on: :update after_commit :remove_from_index_later, on: :destroy After: after_create_commit :add_to_index_later after_update_commit :update_in_index_later after_destroy_commit :remove_from_index_later
-
- 11 3月, 2015 1 次提交
-
-
由 Ahmad Al-kheat 提交于
I deleted self from the callbacks guides code example because it's unnecessary and this way it's more like the other examples where self was not used.
-
- 14 1月, 2015 1 次提交
-
-
由 Vipul A M 提交于
- Changed `IN` to `ON` in all note sentences in guides.
-
- 24 12月, 2014 1 次提交
-
-
由 Xavier Noria 提交于
References #18148.
-
- 09 7月, 2014 1 次提交
-
-
由 Nishant Modak 提交于
-
- 22 5月, 2014 1 次提交
-
-
由 John Kelly Ferguson 提交于
-
- 11 4月, 2014 1 次提交
-
-
由 Kyle Heironimus 提交于
Adding after_commit/after_rollback to list of callbacks in order helps explain the callback order as well as making it consistent with the API docs at http://api.rubyonrails.org/classes/ActiveRecord/Callbacks.html
-