mirror of
https://github.com/internetee/registry.git
synced 2025-06-08 21:54:48 +02:00
refactoring: changed constants format
This commit is contained in:
parent
6b7c51a347
commit
137e2a3170
2 changed files with 2 additions and 3 deletions
|
@ -2,8 +2,8 @@ module Domain::RegistryLockable
|
|||
extend ActiveSupport::Concern
|
||||
|
||||
LOCK_STATUSES = [DomainStatus::SERVER_UPDATE_PROHIBITED,
|
||||
DomainStatus::SERVER_DELETE_PROHIBITED,
|
||||
DomainStatus::SERVER_TRANSFER_PROHIBITED]
|
||||
DomainStatus::SERVER_DELETE_PROHIBITED,
|
||||
DomainStatus::SERVER_TRANSFER_PROHIBITED].freeze
|
||||
|
||||
def apply_registry_lock
|
||||
return unless registry_lockable?
|
||||
|
|
|
@ -104,6 +104,5 @@ class DomainRegistryLockableTest < ActiveSupport::TestCase
|
|||
DomainStatus::SERVER_TRANSFER_PROHIBITED]
|
||||
|
||||
@domain.statuses.include? lock_statuses
|
||||
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue