Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | update callbacks skipping methods in guide [ci skip] | Shivam Jain | 2019-02-23 | 1 | -3/+2 |
| | |||||
* | Revert "Merge pull request #35324 from sharang-d/patch-2" | Ryuta Kamizono | 2019-02-19 | 1 | -1/+1 |
| | | | | | | | | | | | This reverts commit 6b69ae5149f03c2f81a795c085bce56ec18535ae, reversing changes made to 84bd9adafde36d0192849649b86ffcd4e59e5e11. Reason: We already use "happen" a lots for callbacks and validations. https://github.com/rails/rails/pull/35324#issuecomment-465096483 [ci skip] | ||||
* | Update active_record_callbacks.md [ci skip] | Sharang Dashputre | 2019-02-19 | 1 | -1/+1 |
| | | | | Change 'happen' to a more technical term | ||||
* | Delete documentation inconsistency 'finally' for AR callbacks [ci skip] ↵ | Shodai Suzuki | 2019-02-19 | 1 | -1/+1 |
| | | | | (#35303) | ||||
* | Add combining callback conditions [skip ci] (#35313) | Shodai Suzuki | 2019-02-19 | 1 | -0/+14 |
| | |||||
* | Clarify transactional behavior of after_commit and after_rollback callbacks | Robbert Brak | 2018-09-14 | 1 | -1/+3 |
| | |||||
* | Improve documentation of Procs as :if / :unless options for callbacks | Fabian Schwahn | 2018-08-20 | 1 | -0/+8 |
| | |||||
* | Rails guides are now served over https | Paul McMahon | 2018-07-24 | 1 | -1/+1 |
| | | | | | http links will be redirected to the https version, but still better to just directly link to the https version. | ||||
* | Fix document issue in active record callback about `after_touch` hook. | lanzhiheng | 2018-07-15 | 1 | -4/+4 |
| | |||||
* | Added a lot of Oxford commas | Anthony Crumley | 2018-05-10 | 1 | -1/+1 |
| | | | | | | | [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) " | ||||
* | Deprecate update_attributes and update_attributes! | Eddie Lebow | 2018-02-17 | 1 | -1/+1 |
| | | | | Closes #31998 | ||||
* | Move touch method from Skipping Callbacks section to Running Callbacks ↵ | Avneet Singh Malhotra | 2017-11-13 | 1 | -1/+1 |
| | | | | section [ci skip] | ||||
* | Small grammar fixes | Jon Moss | 2017-08-16 | 1 | -1/+1 |
| | | | | | | Changed sentence to be more clear [ci skip] | ||||
* | [ci skip] Add documentation for after_create_commit and after_update_commit ↵ | jagdeepsingh | 2017-07-25 | 1 | -0/+29 |
| | | | | callbacks | ||||
* | Pluralize callback | Jon Moss | 2017-04-10 | 1 | -1/+3 |
| | | | | | | Users could have more than one `before_destroy` callback in their models. [ci skip] | ||||
* | Merge pull request #28680 from vishalzambre/callback_doc_update | Jon Moss | 2017-04-10 | 1 | -0/+2 |
|\ | | | | | Documented issue related before_destroy with dependent: :destroy | ||||
| * | [ci skip] documented issue related before_destroy | vishalzambre | 2017-04-10 | 1 | -0/+2 |
| | | | | | | | | Updated text | ||||
* | | Fix edge guides for Active Record callbacks | Alessandro Dal Grande | 2017-04-04 | 1 | -1/+5 |
|/ | |||||
* | Remove deprecate passing string to `:if` and `:unless` conditional options ↵ | yuuji.yaginuma | 2017-02-18 | 1 | -11/+1 |
| | | | | | | [ci skip] Follow up to #27608 | ||||
* | Merge pull request #25427 from eugeneius/update_increment_documentation | Kasper Timm Hansen | 2017-01-08 | 1 | -2/+0 |
|\ | | | | | Update increment! documentation [ci skip] | ||||
| * | Update increment! documentation [ci skip] | Eugene Kenny | 2016-08-15 | 1 | -2/+0 |
| | | | | | | | | | | | | | | | | | | | | | | 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. | ||||
* | | Abuse of protected in guides | Akira Matsuda | 2016-12-25 | 1 | -3/+3 |
| | | |||||
* | | Update docs for change in transaction callback exceptions | Nathan Wenneker | 2016-09-03 | 1 | -1/+1 |
|/ | | | | | | | | | 07d3d40 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] | ||||
* | [skip ci] Fix typo and simplify after_commit example | wynksaiddestroy | 2016-06-14 | 1 | -2/+2 |
| | | | | 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. | ||||
* | Mention that halting chain does not re-raise `ActiveRecord::RecordInvalid` ↵ | Vipul A M | 2016-01-19 | 1 | -1/+1 |
| | | | | | | | | exception as well, similar to `ActiveRecord::Rollback` Fixes #22297 [ci skip] | ||||
* | Introduce ApplicationRecord, an Active Record layer supertype | Genadi Samokovarov | 2015-12-16 | 1 | -17/+17 |
| | | | | | | | | | | | | | | | | 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. | ||||
* | Introduce after_{create,update,delete}_commit callbacks | Genadi Samokovarov | 2015-12-06 | 1 | -0/+19 |
| | | | | | | | | | | | | | | | | 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 | ||||
* | Merge pull request #19289 from ahmad-alkheat/master | Yves Senn | 2015-03-11 | 1 | -1/+1 |
|\ | | | | | Unnecessary usage of self in the guides [ci skip] | ||||
| * | Unnecessary usage of self in the guides | Ahmad Al-kheat | 2015-03-11 | 1 | -1/+1 |
| | | | | | | 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. | ||||
* | | - Changed `IN` to `ON` in markdown renderer condition | Vipul A M | 2015-01-14 | 1 | -1/+1 |
|/ | | | | - Changed `IN` to `ON` in all note sentences in guides. | ||||
* | warn about reading guides in GitHub | Xavier Noria | 2014-12-23 | 1 | -0/+2 |
| | | | | References #18148. | ||||
* | correct markdown usage [ci skip] | Nishant Modak | 2014-07-09 | 1 | -1/+1 |
| | |||||
* | Rename Posts to Articles in Guides, continuation of 2d446e77 / #13774 [ci skip] | John Kelly Ferguson | 2014-05-21 | 1 | -8/+8 |
| | |||||
* | Add after_commit/after_rollback to callback list | Kyle Heironimus | 2014-04-10 | 1 | -0/+3 |
| | | | | | | 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 | ||||
* | Merge pull request #13032 from kuldeepaggarwal/after_touch_documentation | Yves Senn | 2013-12-12 | 1 | -0/+49 |
|\ | | | | | [ci skip] added after_touch callback documentation [ci skip] | ||||
| * | [ci skip] added after_touch callback documentation | Kuldeep Aggarwal | 2013-12-12 | 1 | -0/+49 |
| | | | | | | | | [ci skip] added more explanation for `after_touch` callback | ||||
* | | typos rectified lifecycle => life cycle | Aayush khandelwal | 2013-12-12 | 1 | -1/+1 |
| | | |||||
* | | The section that mentions after_commit and after_rollback will swallow ↵ | Bikram | 2013-11-28 | 1 | -1/+1 |
|/ | | | | exceptions should me made clear. Made that section to be a instead of a regular paragraph. | ||||
* | Merge branch 'master' of github.com:rails/docrails | Vijay Dev | 2013-11-07 | 1 | -2/+2 |
|\ | |||||
| * | exists? is deprecated in ruby trunk [ci skip] | Rashmi Yadav | 2013-11-01 | 1 | -2/+2 |
| | | | | | | see here 4d4ff531b8807ee88a3fc46875c7e76f613956fb | ||||
* | | Rephrase ActiveRecord transaction rollback warning | Nate Berkopec | 2013-10-16 | 1 | -1/+1 |
|/ | | | | [ci skip] | ||||
* | Use Ruby on Rails Coding Conventions for code examples in the guides | Paul Nikitochkin | 2013-09-06 | 1 | -10/+10 |
| | | | | | | | | * 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] | ||||
* | Change the wording to explain following methods skip callbacks [ci skip] | Prathamesh Sonpatki | 2013-08-19 | 1 | -1/+3 |
| | |||||
* | Remove block argument from callback example. | Carlos Souza | 2013-07-13 | 1 | -2/+2 |
| | | | | [ci skip] | ||||
* | 1.9 Hash Syntax | Akira Matsuda | 2013-07-08 | 1 | -1/+1 |
| | |||||
* | Adding find_by in guide to methods that trigger after_find | Cristian Planas | 2013-07-01 | 1 | -0/+1 |
| | |||||
* | update the example for `after_commit` in the guides. | Yves Senn | 2013-02-24 | 1 | -9/+7 |
| | | | | This is a follow up to #9356. | ||||
* | remove 'update' duplications | Juanjo Bazán | 2013-01-08 | 1 | -1/+0 |
| | |||||
* | Merge branch 'master' of github.com:lifo/docrails | Vijay Dev | 2013-01-09 | 1 | -2/+1 |
|\ | | | | | | | | | Conflicts: guides/source/getting_started.md | ||||
| * | find_all_by is deprecated in AR 4 | Akira Matsuda | 2013-01-02 | 1 | -2/+1 |
| | |