mirror of
https://github.com/internetee/registry.git
synced 2025-08-04 08:52:04 +02:00
Story #104525314 - bug fix, now pendingDeleteConfirmation must transit to pendingDelete, or cancel pending
This commit is contained in:
parent
a48abe621e
commit
64b0e391a4
3 changed files with 9 additions and 6 deletions
|
@ -492,6 +492,12 @@ class Domain < ActiveRecord::Base
|
|||
DomainMailer.pending_deleted(self).deliver_now
|
||||
end
|
||||
|
||||
def cancel_pending_delete
|
||||
statuses.delete DomainStatus::PENDING_DELETE_CONFIRMATION
|
||||
statuses.delete DomainStatus::PENDING_DELETE
|
||||
delete_at = nil
|
||||
end
|
||||
|
||||
def pricelist(operation, period_i = nil, unit = nil)
|
||||
period_i ||= period
|
||||
unit ||= period_unit
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue