mirror of
https://github.com/internetee/registry.git
synced 2025-08-06 01:35:10 +02:00
added deadline registration condition during domain registration from auction
This commit is contained in:
parent
bbe667b9d2
commit
b5b59026b9
4 changed files with 43 additions and 3 deletions
|
@ -78,6 +78,10 @@ module DNS
|
|||
!not_auctionable?
|
||||
end
|
||||
|
||||
def is_deadline_is_reached?
|
||||
pending_auction && pending_auction.payment_received? && pending_auction&.registration_deadline && Time.zone.now > pending_auction.registration_deadline
|
||||
end
|
||||
|
||||
def to_s
|
||||
name
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue