Use a callback to create personal access tokens
- Currently, the behavior is to use a
generate
class method to generate a token and assign it to the record. - This could instead be done in a
before_create
callback, and thegenerate
method becomes unnecessary. - More context: https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/3749#note_12544395
Edited by 🤖 GitLab Bot 🤖