From 7d6136435d49c4e4ca717cc39bb150487dfa0e8d Mon Sep 17 00:00:00 2001 From: aignatov-bio <47317017+aignatov-bio@users.noreply.github.com> Date: Tue, 26 Oct 2021 12:06:35 +0200 Subject: [PATCH] Change my_module owner after copy [SCI-6176] (#3611) Co-authored-by: Anton --- app/models/my_module.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/my_module.rb b/app/models/my_module.rb index 1b26464ad..b2a8c8c91 100644 --- a/app/models/my_module.rb +++ b/app/models/my_module.rb @@ -372,7 +372,7 @@ class MyModule < ApplicationRecord description: description, x: x, y: y, - created_by: created_by + created_by: current_user ) # set new position if cloning in the same experiment