From 093110873b88c193bfe1e48bff09f0bacaec99b6 Mon Sep 17 00:00:00 2001 From: Brusk Hamarash Date: Tue, 15 Jun 2021 12:50:44 +0300 Subject: [PATCH] Bug fix --- lib/workflower/acts_as_workflower.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/workflower/acts_as_workflower.rb b/lib/workflower/acts_as_workflower.rb index 987554c..f2f17a4 100644 --- a/lib/workflower/acts_as_workflower.rb +++ b/lib/workflower/acts_as_workflower.rb @@ -34,12 +34,11 @@ module Workflower source.get_workflows_for_workflow_id(workflow_id) end - def workflower_initializer @workflower_base ||= Workflower::Manager.new(self, source) @workflower_base.allowed_transitions.each do |flow| define_singleton_method flow.trigger_action_name.to_s do - write_attribute :workflow_transition_event_name, flow.event + @workflow_transition_event_name = flow.event @workflower_base.process_transition!(flow) end