mirror of
https://github.com/internetee/registry.git
synced 2025-08-04 00:42:04 +02:00
separete responsibility of different pieces of code
This commit is contained in:
parent
da3172169a
commit
3985513407
3 changed files with 49 additions and 6 deletions
|
@ -11,13 +11,16 @@ module Domain::RegistryLockable
|
|||
|
||||
save_statuses_history
|
||||
|
||||
transaction do
|
||||
self.statuses |= LOCK_STATUSES
|
||||
self.locked_by_registrant_at = Time.zone.now
|
||||
alert_registrar_lock_changes!(lock: true)
|
||||
# transaction do
|
||||
# self.statuses |= LOCK_STATUSES
|
||||
# self.locked_by_registrant_at = Time.zone.now
|
||||
# alert_registrar_lock_changes!(lock: true)
|
||||
|
||||
save!
|
||||
end
|
||||
# save!
|
||||
# end
|
||||
# Domains::ForceDelete::SetForceDelete.run(domain: self, type: type, reason: reason,
|
||||
# notify_by_email: notify_by_email, email: email)
|
||||
Domain::RegistryLockable::SetRegistratLock.run(domain: self)
|
||||
end
|
||||
|
||||
def registry_lockable?
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue