mirror of
https://github.com/internetee/registry.git
synced 2025-06-10 14:44:47 +02:00
Allow saving of contact request AWS message_id
This commit is contained in:
parent
32634c7a8b
commit
9e291d5458
2 changed files with 7 additions and 5 deletions
|
@ -24,9 +24,10 @@ class ContactRequest < ApplicationRecord
|
|||
contact_request
|
||||
end
|
||||
|
||||
def update_status(params)
|
||||
self.status = params['status']
|
||||
self.ip_address = params['ip']
|
||||
def update_record(params)
|
||||
self.status = params['status'] if params['status']
|
||||
self.ip_address = params['ip'] if params['ip']
|
||||
self.message_id = params['ip'] if params['message_id']
|
||||
save!
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue