mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-09-12 08:04:34 +08:00
Update users selection for notifications [SCI-6110] (#3573)
This commit is contained in:
parent
982aaf887c
commit
116c09cd8a
2 changed files with 2 additions and 2 deletions
|
@ -35,7 +35,7 @@ module GenerateNotificationModel
|
||||||
when Project
|
when Project
|
||||||
users = subject.users
|
users = subject.users
|
||||||
when Experiment
|
when Experiment
|
||||||
users = subject.project.users
|
users = subject.users
|
||||||
when MyModule
|
when MyModule
|
||||||
users = subject.users
|
users = subject.users
|
||||||
# Also send to the user that was unassigned,
|
# Also send to the user that was unassigned,
|
||||||
|
|
|
@ -56,7 +56,7 @@ class MyModule < ApplicationRecord
|
||||||
has_many :repository_rows, through: :my_module_repository_rows
|
has_many :repository_rows, through: :my_module_repository_rows
|
||||||
has_many :repository_snapshots, dependent: :destroy, inverse_of: :my_module
|
has_many :repository_snapshots, dependent: :destroy, inverse_of: :my_module
|
||||||
has_many :user_my_modules, inverse_of: :my_module, dependent: :destroy
|
has_many :user_my_modules, inverse_of: :my_module, dependent: :destroy
|
||||||
has_many :users, through: :user_my_modules
|
has_many :users, through: :user_assignments
|
||||||
has_many :report_elements, inverse_of: :my_module, dependent: :destroy
|
has_many :report_elements, inverse_of: :my_module, dependent: :destroy
|
||||||
has_many :protocols, inverse_of: :my_module, dependent: :destroy
|
has_many :protocols, inverse_of: :my_module, dependent: :destroy
|
||||||
# Associations for old activity type
|
# Associations for old activity type
|
||||||
|
|
Loading…
Add table
Reference in a new issue