mirror of
https://github.com/internetee/registry.git
synced 2025-06-11 23:24:48 +02:00
fix: made admin status store, related to lock feature
This commit is contained in:
parent
3985513407
commit
dad4790ccc
8 changed files with 25 additions and 87 deletions
|
@ -18,7 +18,7 @@ class Domain < ApplicationRecord
|
|||
|
||||
store_accessor :json_statuses_history,
|
||||
:force_delete_domain_statuses_history,
|
||||
:locked_domain_statuses_history
|
||||
:admin_store_statuses_history
|
||||
|
||||
alias_attribute :on_hold_time, :outzone_at
|
||||
alias_attribute :outzone_time, :outzone_at
|
||||
|
@ -558,6 +558,8 @@ class Domain < ApplicationRecord
|
|||
# special handling for admin changing status
|
||||
def admin_status_update(update)
|
||||
# check for deleted status
|
||||
self.admin_store_statuses_history = statuses
|
||||
|
||||
statuses.each do |s|
|
||||
unless update.include? s
|
||||
case s
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue