mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-01-31 20:19:05 +08:00
Merge pull request #1350 from okriuchykhin/ok_SCI_2821
Fix relationships in activities serializer [SCI-2821]
This commit is contained in:
commit
d0804c8969
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…
Reference in a new issue