diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2020-01-23 18:08:46 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2020-01-23 18:08:46 +0300 |
commit | 3f9e1b261121f4dbd045341241f81b47356c99cf (patch) | |
tree | 32be23bd7fda0c3f891182f220f6d0399a1b41dd /app/models/spam_log.rb | |
parent | 5ad0cf26551baff8f08af8562a8d45e6ec14d71a (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/models/spam_log.rb')
-rw-r--r-- | app/models/spam_log.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/app/models/spam_log.rb b/app/models/spam_log.rb index 5b9ece8373f..2ec53f58e5f 100644 --- a/app/models/spam_log.rb +++ b/app/models/spam_log.rb @@ -12,4 +12,8 @@ class SpamLog < ApplicationRecord def text [title, description].join("\n") end + + def self.verify_recaptcha!(id:, user_id:) + find_by(id: id, user_id: user_id)&.update!(recaptcha_verified: true) + end end |