Fixed activities service for singular relations (asset/result) [SCI-6204] (#3633)

This commit is contained in:
artoscinote 2021-11-04 14:20:51 +01:00 committed by GitHub
parent 33190e4582
commit ba5403ab5e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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