mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-02-22 14:54:38 +08:00
Fixed activities service for singular relations (asset/result) [SCI-6204] (#3633)
This commit is contained in:
parent
33190e4582
commit
ba5403ab5e
1 changed files with 1 additions and 1 deletions
|
@ -61,7 +61,7 @@ class ActivitiesService
|
|||
|
||||
subjects[child_model] = parent_model.where(id: subjects[subject_name])
|
||||
.joins(child)
|
||||
.pluck("#{child}.id")
|
||||
.pluck("#{child.to_s.pluralize}.id")
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue