mirror of
https://github.com/internetee/registry.git
synced 2025-06-07 13:15:40 +02:00
Add update endpoint for ContactRequests
This commit is contained in:
parent
1bbacbf56c
commit
b708cebbfd
5 changed files with 61 additions and 9 deletions
|
@ -23,6 +23,11 @@ class ContactRequest < ApplicationRecord
|
|||
contact_request.save!
|
||||
end
|
||||
|
||||
def update_status(status)
|
||||
self.status = status
|
||||
save!
|
||||
end
|
||||
|
||||
def self.create_random_secret
|
||||
SecureRandom.hex(64)
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue