From 0d135937c3dd41838823c8c0551ab00bb3998225 Mon Sep 17 00:00:00 2001 From: Brusk Hamarash Date: Thu, 10 Jun 2021 12:40:36 +0300 Subject: [PATCH] Errors.add transition_failed --- lib/workflower/manager.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/workflower/manager.rb b/lib/workflower/manager.rb index c932e24..4105d40 100644 --- a/lib/workflower/manager.rb +++ b/lib/workflower/manager.rb @@ -49,6 +49,7 @@ module Workflower flow.call_after_transition(@calling_model) true rescue Exception + @calling_model.errors.add(@calling_model.workflower_state_column_name, :transition_faild) false end else