Include description only in full Tournament

This commit is contained in:
Thor77 2018-12-11 14:47:34 +01:00
parent baf1acc10b
commit e3bbe2b773
2 changed files with 3 additions and 2 deletions

View File

@ -1,5 +1,5 @@
# frozen_string_literal: true
class SimpleTournamentSerializer < ApplicationSerializer
attributes :name, :code, :description, :public
attributes :name, :code, :public
end

View File

@ -1,6 +1,7 @@
# frozen_string_literal: true
class TournamentSerializer < SimpleTournamentSerializer
has_many :teams
attributes :description
has_many :stages
has_many :teams
end