Rubocop
This commit is contained in:
parent
5ab18063dd
commit
fafc4d3937
|
|
@ -36,14 +36,12 @@ class MatchesController < ApplicationController
|
||||||
m.state == match_params['state']
|
m.state == match_params['state']
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
render json: matches, each_serializer: ExtendedMatchSerializer, include: [
|
render json: matches, each_serializer: ExtendedMatchSerializer, include: %w[match_scores.team bets stage group]
|
||||||
'match_scores.team', 'bets', 'stage', 'group'
|
|
||||||
]
|
|
||||||
end
|
end
|
||||||
|
|
||||||
# GET /matches/1
|
# GET /matches/1
|
||||||
def show
|
def show
|
||||||
render json: @match, include: ['match_scores.points', 'match_scores.team', 'bets']
|
render json: @match, include: %w[match_scores.points match_scores.team bets]
|
||||||
end
|
end
|
||||||
|
|
||||||
# PATCH/PUT /matches/1
|
# PATCH/PUT /matches/1
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue