This commit is contained in:
zmagod 2016-09-13 16:32:33 +02:00
parent 29a2904513
commit d5c5c55bf2

View file

@ -499,7 +499,12 @@ class Experiment < ActiveRecord::Base
raise ActiveRecord::ActiveRecordError raise ActiveRecord::ActiveRecordError
end end
my_module.save! my_module.save
end
# Generate workflow image for the experiment in which we moved the task
to_move.each_value do |id|
experiment = Experiment.find_by_id(id)
experiment.delay.generate_workflow_img experiment.delay.generate_workflow_img
end end
end end
@ -543,9 +548,14 @@ class Experiment < ActiveRecord::Base
group.experiment = experiment group.experiment = experiment
group.save! group.save!
experiment.delay.generate_workflow_img
end end
end end
# Generate workflow image for the experiment in which we moved the workflow
to_move.each_value do |id|
experiment = Experiment.find_by_id(id)
experiment.delay.generate_workflow_img
end
end end
# Update connections for all modules in this project. # Update connections for all modules in this project.