diff --git a/Gemfile.lock b/Gemfile.lock index 982a4b6..bcd0bc3 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -229,6 +229,7 @@ GEM PLATFORMS x86_64-darwin-20 + x86_64-darwin-22 DEPENDENCIES bootsnap (>= 1.4.4) diff --git a/app/controllers/api/scores_controller.rb b/app/controllers/api/scores_controller.rb index cbed318..5e95873 100644 --- a/app/controllers/api/scores_controller.rb +++ b/app/controllers/api/scores_controller.rb @@ -5,7 +5,7 @@ class ScoresController < ApplicationController before_action :validate_score_user_id, only: :destroy def user_feed - scores = Score.all.order(played_at: :desc, id: :desc) + scores = Score.all.order(played_at: :desc, id: :desc).includes(:user) serialized_scores = scores.map(&:serialize) response = {