lib/sequel/model.rb in sequel-3.28.0 vs lib/sequel/model.rb in sequel-3.29.0

- old
+ new

@@ -77,10 +77,11 @@ # so later hooks are called before earlier hooks. BEFORE_HOOKS = [:before_create, :before_update, :before_save, :before_destroy, :before_validation] # Hooks that are called after an action. When overriding these, it is recommended to call # +super+ on the first line of your method, so later hooks are called after earlier hooks. - AFTER_HOOKS = [:after_initialize, :after_create, :after_update, :after_save, :after_destroy, :after_validation] + AFTER_HOOKS = [:after_initialize, :after_create, :after_update, :after_save, :after_destroy, + :after_validation, :after_commit, :after_rollback, :after_destroy_commit, :after_destroy_rollback] # Hooks that are called around an action. If overridden, these methods must call super # exactly once if the behavior they wrap is desired. The can be used to rescue exceptions # raised by the code they wrap or ensure that some behavior is executed no matter what. AROUND_HOOKS = [:around_create, :around_update, :around_save, :around_destroy, :around_validation]