mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-10-01 17:34:59 +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
|
type :activities
|
||||||
attributes :id, :type_of, :message
|
attributes :id, :type_of, :message
|
||||||
belongs_to :project, serializer: ProjectSerializer
|
belongs_to :project, serializer: ProjectSerializer
|
||||||
belongs_to :experiment, serializer: TaskSerializer,
|
belongs_to :experiment, serializer: ExperimentSerializer,
|
||||||
if: -> { object.experiment.present? }
|
if: -> { object.experiment.present? }
|
||||||
belongs_to :my_module, key: :task,
|
belongs_to :my_module, key: :task,
|
||||||
serializer: TaskSerializer,
|
serializer: TaskSerializer,
|
||||||
|
|
Loading…
Add table
Reference in a new issue