From 6ea34adb22df8bb2780f90b3e10257305261fdfe Mon Sep 17 00:00:00 2001 From: Martin Artnik Date: Wed, 13 Oct 2021 13:39:28 +0200 Subject: [PATCH] Fixed designated users relation --- 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 ab656ad76..1b26464ad 100644 --- a/app/models/my_module.rb +++ b/app/models/my_module.rb @@ -57,7 +57,7 @@ class MyModule < ApplicationRecord has_many :repository_snapshots, dependent: :destroy, inverse_of: :my_module has_many :user_my_modules, inverse_of: :my_module, dependent: :destroy has_many :users, through: :user_assignments - has_many :designated_users, through: :user_my_modules + has_many :designated_users, through: :user_my_modules, source: :user has_many :report_elements, inverse_of: :my_module, dependent: :destroy has_many :protocols, inverse_of: :my_module, dependent: :destroy # Associations for old activity type