Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Speicher <rspeicher@gmail.com>2017-09-19 21:22:43 +0300
committerRobert Speicher <rspeicher@gmail.com>2017-12-20 00:45:08 +0300
commit2f92238a6ea5550f94a4ece8453cbf6bdee1f77d (patch)
tree0fd399f271e79ff4375efb2d3a206b4327fdcbd1 /app/helpers/search_helper.rb
parent6f1df8dfaabfebeb5e9ffbd785f263314b817324 (diff)
Use UserSerializer instead of `User.to_json`
Diffstat (limited to 'app/helpers/search_helper.rb')
-rw-r--r--app/helpers/search_helper.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/helpers/search_helper.rb b/app/helpers/search_helper.rb
index 2f57660516d..0f9ac958f95 100644
--- a/app/helpers/search_helper.rb
+++ b/app/helpers/search_helper.rb
@@ -139,7 +139,7 @@ module SearchHelper
id: "filtered-search-#{type}",
placeholder: 'Search or filter results...',
data: {
- 'username-params' => @users.to_json(only: [:id, :username])
+ 'username-params' => UserSerializer.new.represent(@users)
},
autocomplete: 'off'
}