Include description only in full Tournament
This commit is contained in:
parent
baf1acc10b
commit
e3bbe2b773
|
|
@ -1,5 +1,5 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
class SimpleTournamentSerializer < ApplicationSerializer
|
||||
attributes :name, :code, :description, :public
|
||||
attributes :name, :code, :public
|
||||
end
|
||||
|
|
|
|||
|
|
@ -1,6 +1,7 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
class TournamentSerializer < SimpleTournamentSerializer
|
||||
has_many :teams
|
||||
attributes :description
|
||||
has_many :stages
|
||||
has_many :teams
|
||||
end
|
||||
|
|
|
|||
Loading…
Reference in New Issue