mirror of
https://github.com/internetee/registry.git
synced 2025-08-05 09:21:43 +02:00
Rubocop updates
This commit is contained in:
parent
17eec8e298
commit
7e340415e1
6 changed files with 9 additions and 4 deletions
|
@ -546,6 +546,7 @@ class Domain < ActiveRecord::Base
|
|||
self.delete_at = outzone_at + Setting.redemption_grace_period.days
|
||||
end
|
||||
|
||||
# rubocop:disable Metrics/AbcSize
|
||||
def set_force_delete
|
||||
self.statuses_backup = statuses
|
||||
statuses.delete(DomainStatus::CLIENT_DELETE_PROHIBITED)
|
||||
|
@ -572,6 +573,7 @@ class Domain < ActiveRecord::Base
|
|||
self.force_delete_at = Time.zone.now + Setting.redemption_grace_period.days unless force_delete_at
|
||||
save(validate: false)
|
||||
end
|
||||
# rubocop:enable Metrics/AbcSize
|
||||
|
||||
def unset_force_delete
|
||||
s = []
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue