Just use find_by! and we're rescuing ActiveRecord::RecordNotFound
Feedback: https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/5142#note_13125645
Showing
Please register or sign in to comment
Feedback: https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/5142#note_13125645