mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-09-30 17:04:31 +08:00
Fix relationships in activities serializer [SCI-2821]
This commit is contained in:
parent
c8d381a0a2
commit
012447d762
1 changed files with 1 additions and 1 deletions
|
@ -6,7 +6,7 @@ module Api
|
|||
type :activities
|
||||
attributes :id, :type_of, :message
|
||||
belongs_to :project, serializer: ProjectSerializer
|
||||
belongs_to :experiment, serializer: TaskSerializer,
|
||||
belongs_to :experiment, serializer: ExperimentSerializer,
|
||||
if: -> { object.experiment.present? }
|
||||
belongs_to :my_module, key: :task,
|
||||
serializer: TaskSerializer,
|
||||
|
|
Loading…
Add table
Reference in a new issue