Method: ActiveRecord::Transactions::ClassMethods#after_rollback
- Defined in:
- activerecord/lib/active_record/transactions.rb
#after_rollback(*args, &block) ⇒ Object
This callback is called after a create, update, or destroy are rolled back.
Please check the documentation of #after_commit for options.
264 265 266 267 |
# File 'activerecord/lib/active_record/transactions.rb', line 264 def after_rollback(*args, &block) (args, prepend_option) set_callback(:rollback, :after, *args, &block) end |