- 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
-
- 12 12月, 2013 2 次提交
-
-
由 Kuldeep Aggarwal 提交于
[ci skip] added more explanation for `after_touch` callback
-
由 Aayush khandelwal 提交于
-
- 29 11月, 2013 1 次提交
-
-
由 Bikram 提交于
The section that mentions after_commit and after_rollback will swallow exceptions should me made clear. Made that section to be a instead of a regular paragraph.
-
- 02 11月, 2013 1 次提交
-
-
由 Rashmi Yadav 提交于
see here 4d4ff531
-
- 16 10月, 2013 1 次提交
-
-
由 Nate Berkopec 提交于
[ci skip]
-
- 07 9月, 2013 1 次提交
-
-
由 Paul Nikitochkin 提交于
* Indent after private/protected * Ruby >= 1.9 syntax for hashes * Prefer method { do_stuff } instead of method{do_stuff} for single-line blocks. [ci skip]
-
- 19 8月, 2013 1 次提交
-
-
由 Prathamesh Sonpatki 提交于
-
- 13 7月, 2013 1 次提交
-
-
由 Carlos Souza 提交于
[ci skip]
-
- 08 7月, 2013 1 次提交
-
-
由 Akira Matsuda 提交于
-
- 01 7月, 2013 1 次提交
-
-
由 Cristian Planas 提交于
-
- 25 2月, 2013 1 次提交
-
-
由 Yves Senn 提交于
This is a follow up to #9356.
-
- 09 1月, 2013 1 次提交
-
-
由 Juanjo Bazán 提交于
-
- 04 1月, 2013 1 次提交
-
-
- 02 1月, 2013 1 次提交
-
-
由 Akira Matsuda 提交于
-
- 13 12月, 2012 1 次提交
-
-
由 Pablo Torres 提交于
-