From 860177c0a4fb3372b3608cd4bedb0d0986f33f5c Mon Sep 17 00:00:00 2001 From: Justin Edmund Date: Sat, 13 Dec 2025 20:09:52 -0800 Subject: [PATCH] add show_gamertag to user --- app/blueprints/api/v1/user_blueprint.rb | 2 +- app/controllers/api/v1/users_controller.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/blueprints/api/v1/user_blueprint.rb b/app/blueprints/api/v1/user_blueprint.rb index 078de5a..14fa095 100644 --- a/app/blueprints/api/v1/user_blueprint.rb +++ b/app/blueprints/api/v1/user_blueprint.rb @@ -4,7 +4,7 @@ module Api module V1 class UserBlueprint < ApiBlueprint view :minimal do - fields :username, :language, :private, :gender, :theme, :role + fields :username, :language, :private, :gender, :theme, :role, :granblue_id, :show_gamertag field :avatar do |user| { picture: user.picture, diff --git a/app/controllers/api/v1/users_controller.rb b/app/controllers/api/v1/users_controller.rb index 735fb0e..ef7ccf9 100644 --- a/app/controllers/api/v1/users_controller.rb +++ b/app/controllers/api/v1/users_controller.rb @@ -237,7 +237,7 @@ module Api def user_params params.require(:user).permit( :username, :email, :password, :password_confirmation, - :granblue_id, :picture, :element, :language, :gender, :private, :theme + :granblue_id, :picture, :element, :language, :gender, :private, :theme, :show_gamertag ) end end