From baf1acc10befb0325da4ae1570b140570efa7e84 Mon Sep 17 00:00:00 2001 From: Thor77 Date: Tue, 11 Dec 2018 14:46:47 +0100 Subject: [PATCH] Include team-relation in MatchScoreSerializer --- app/serializers/match_score_serializer.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app/serializers/match_score_serializer.rb b/app/serializers/match_score_serializer.rb index 2e831ab..bb62f7e 100644 --- a/app/serializers/match_score_serializer.rb +++ b/app/serializers/match_score_serializer.rb @@ -3,6 +3,5 @@ class MatchScoreSerializer < ApplicationSerializer attributes :points - has_one :team - has_one :match + belongs_to :team end