Method: ActiveRecord::Transactions::ClassMethods#after_destroy_commit
- Defined in:
- activerecord/lib/active_record/transactions.rb
#after_destroy_commit(*args, &block) ⇒ Object
Shortcut for after_commit :hook, on: :destroy
.
256 257 258 259 |
# File 'activerecord/lib/active_record/transactions.rb', line 256 def after_destroy_commit(*args, &block) (args, on: :destroy, **prepend_option) set_callback(:commit, :after, *args, &block) end |