diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2023-02-08 12:08:15 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2023-02-08 12:08:15 +0300 |
commit | 9ccf40d15a14e9ccf613701ba7e3d5d250961345 (patch) | |
tree | 3855ff4af6d2efbf67b956b2665cf054aa1e8a66 /app/models | |
parent | 0812feb16adcf8da1d3555f1d736e7b154fcd046 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/models')
-rw-r--r-- | app/models/users/saved_reply.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/app/models/users/saved_reply.rb b/app/models/users/saved_reply.rb index 61459abe24b..f0ae5445a46 100644 --- a/app/models/users/saved_reply.rb +++ b/app/models/users/saved_reply.rb @@ -11,5 +11,9 @@ module Users length: { maximum: 255 }, uniqueness: { scope: [:user_id] } validates :content, length: { maximum: 10000 } + + def self.find_saved_reply(user_id:, id:) + ::Users::SavedReply.find_by(user_id: user_id, id: id) + end end end |