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