Merge pull request #916 from okriuchykhin/ok_SCI_1871

Fix canvas update [SCI-1871]
This commit is contained in:
okriuchykhin 2018-01-03 15:47:10 +01:00 committed by GitHub
commit ac7746ae91
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -600,7 +600,7 @@ class Experiment < ApplicationRecord
end
# There are no callbacks in Connection, so delete_all should be safe
Connection.delete_all(output_id: my_modules)
Connection.where(output_id: my_modules).delete_all
# Add new connections
filtered_edges = dg.edges.collect { |e| [e.source, e.target] }
@ -732,7 +732,7 @@ class Experiment < ApplicationRecord
end
# Remove any existing module groups from modules
unless MyModuleGroup.destroy_all(id: group_ids.to_a)
unless MyModuleGroup.where(id: group_ids.to_a).destroy_all
raise ActiveRecord::ActiveRecordError
end