summaryrefslogtreecommitdiff
path: root/app/helpers/users_helper.rb
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2022-10-28 00:11:00 +0000
committerGitLab Bot <gitlab-bot@gitlab.com>2022-10-28 00:11:00 +0000
commite39b6277eb4f4560af5c541a79d890e8186f130e (patch)
tree748bfcc631f919e622e560250a464a30c7f458b1 /app/helpers/users_helper.rb
parent1f992463a93d2db88a661dd2a60a1f0a81375f44 (diff)
downloadgitlab-ce-e39b6277eb4f4560af5c541a79d890e8186f130e.tar.gz
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/helpers/users_helper.rb')
-rw-r--r--app/helpers/users_helper.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/app/helpers/users_helper.rb b/app/helpers/users_helper.rb
index 4f345fdeb9c..d66942c2884 100644
--- a/app/helpers/users_helper.rb
+++ b/app/helpers/users_helper.rb
@@ -3,8 +3,8 @@
module UsersHelper
def admin_users_data_attributes(users)
{
- users: Admin::UserSerializer.new.represent(users, { current_user: current_user }).to_json,
- paths: admin_users_paths.to_json
+ users: Gitlab::Json.dump(Admin::UserSerializer.new.represent(users, { current_user: current_user })),
+ paths: Gitlab::Json.dump(admin_users_paths)
}
end
@@ -163,8 +163,8 @@ module UsersHelper
def admin_user_actions_data_attributes(user)
{
- user: Admin::UserEntity.represent(user, { current_user: current_user }).to_json,
- paths: admin_users_paths.to_json
+ user: Gitlab::Json.dump(Admin::UserEntity.represent(user, { current_user: current_user })),
+ paths: Gitlab::Json.dump(admin_users_paths)
}
end