mirror of
https://github.com/internetee/registry.git
synced 2025-06-10 06:34:46 +02:00
parent
02223b28f3
commit
a469b6b5d4
1 changed files with 2 additions and 0 deletions
|
@ -10,6 +10,7 @@ class DomainTransfer < ActiveRecord::Base
|
|||
SERVER_APPROVED = 'serverApproved'
|
||||
|
||||
before_create :set_wait_until
|
||||
|
||||
def set_wait_until
|
||||
wait_time = Setting.transfer_wait_time
|
||||
return if wait_time == 0
|
||||
|
@ -17,6 +18,7 @@ class DomainTransfer < ActiveRecord::Base
|
|||
end
|
||||
|
||||
before_create :set_status
|
||||
|
||||
def set_status
|
||||
if Setting.transfer_wait_time > 0
|
||||
self.status = PENDING unless status
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue