diff options
author | Robert Speicher <rspeicher@gmail.com> | 2017-09-19 14:22:43 -0400 |
---|---|---|
committer | Robert Speicher <rspeicher@gmail.com> | 2017-12-19 15:45:08 -0600 |
commit | 2f92238a6ea5550f94a4ece8453cbf6bdee1f77d (patch) | |
tree | 0fd399f271e79ff4375efb2d3a206b4327fdcbd1 /app/helpers/issuables_helper.rb | |
parent | 6f1df8dfaabfebeb5e9ffbd785f263314b817324 (diff) | |
download | gitlab-ce-2f92238a6ea5550f94a4ece8453cbf6bdee1f77d.tar.gz |
Use UserSerializer instead of `User.to_json`
Diffstat (limited to 'app/helpers/issuables_helper.rb')
-rw-r--r-- | app/helpers/issuables_helper.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/helpers/issuables_helper.rb b/app/helpers/issuables_helper.rb index b4ca0e68e0b..2668cf78afe 100644 --- a/app/helpers/issuables_helper.rb +++ b/app/helpers/issuables_helper.rb @@ -362,7 +362,7 @@ module IssuablesHelper moveIssueEndpoint: move_namespace_project_issue_path(namespace_id: issuable.project.namespace.to_param, project_id: issuable.project, id: issuable), projectsAutocompleteEndpoint: autocomplete_projects_path(project_id: @project.id), editable: can_edit_issuable, - currentUser: current_user.as_json(only: [:username, :id, :name], methods: :avatar_url), + currentUser: UserSerializer.new.represent(current_user), rootPath: root_path, fullPath: @project.full_path } |