Skip to content
Snippets Groups Projects
user avatar
trwnh authored
* Make account endorsements idempotent (fix #19045)

* Accept suggestion to use exists? instead of find_by + nil check

Co-authored-by: default avatarYamagishi Kazutoshi <ykzts@desire.sh>

* fix logic (unless, not if)

* switch to using `find_or_create_by!`

Co-authored-by: default avatarYamagishi Kazutoshi <ykzts@desire.sh>
89e1974f
History
Name Last commit Last update