diff options
author | Genadi Samokovarov <gsamokovarov@gmail.com> | 2015-12-06 19:15:33 +0200 |
---|---|---|
committer | Genadi Samokovarov <gsamokovarov@gmail.com> | 2015-12-06 20:33:36 +0200 |
commit | 5a300b2ed6b603474a7ee44d081da9e69465ec10 (patch) | |
tree | 1b9374dba7a2f9bdfcb8987fcc3f7d7fa2e53830 /actionpack/test/fixtures/public/404.html | |
parent | 65443ceb0d55e1445b28e31e772629424e6755c3 (diff) | |
download | rails-5a300b2ed6b603474a7ee44d081da9e69465ec10.tar.gz rails-5a300b2ed6b603474a7ee44d081da9e69465ec10.tar.bz2 rails-5a300b2ed6b603474a7ee44d081da9e69465ec10.zip |
Introduce after_{create,update,delete}_commit callbacks
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
Diffstat (limited to 'actionpack/test/fixtures/public/404.html')
0 files changed, 0 insertions, 0 deletions