From fafc4d393770324dc8e5288c950e08061b908fae Mon Sep 17 00:00:00 2001 From: Malaber Date: Thu, 13 Mar 2025 12:35:27 +0100 Subject: [PATCH] Rubocop --- app/controllers/matches_controller.rb | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/app/controllers/matches_controller.rb b/app/controllers/matches_controller.rb index 90e0c8d..826043c 100644 --- a/app/controllers/matches_controller.rb +++ b/app/controllers/matches_controller.rb @@ -36,14 +36,12 @@ class MatchesController < ApplicationController m.state == match_params['state'] end end - render json: matches, each_serializer: ExtendedMatchSerializer, include: [ - 'match_scores.team', 'bets', 'stage', 'group' - ] + render json: matches, each_serializer: ExtendedMatchSerializer, include: %w[match_scores.team bets stage group] end # GET /matches/1 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 # PATCH/PUT /matches/1