mirror of
https://github.com/ditkrg/workflower.git
synced 2026-01-22 22:26:40 +00:00
Bug fix
This commit is contained in:
parent
47ee3ff006
commit
093110873b
@ -34,12 +34,11 @@ module Workflower
|
|||||||
source.get_workflows_for_workflow_id(workflow_id)
|
source.get_workflows_for_workflow_id(workflow_id)
|
||||||
end
|
end
|
||||||
|
|
||||||
def workflower_initializer
|
|
||||||
@workflower_base ||= Workflower::Manager.new(self, source)
|
@workflower_base ||= Workflower::Manager.new(self, source)
|
||||||
|
|
||||||
@workflower_base.allowed_transitions.each do |flow|
|
@workflower_base.allowed_transitions.each do |flow|
|
||||||
define_singleton_method flow.trigger_action_name.to_s do
|
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)
|
@workflower_base.process_transition!(flow)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user