mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-03-09 22:23:28 +08:00
refactor
This commit is contained in:
parent
29a2904513
commit
d5c5c55bf2
1 changed files with 12 additions and 2 deletions
|
@ -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.
|
||||||
|
|
Loading…
Reference in a new issue