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