mirror of
https://github.com/internetee/registry.git
synced 2025-08-05 09:21:43 +02:00
Fix discarded domains test
This commit is contained in:
parent
38b7e52ac8
commit
fc3a764896
2 changed files with 10 additions and 8 deletions
|
@ -11,6 +11,13 @@ module Concerns::Contact::Identical
|
|||
ident_country_code
|
||||
org_name
|
||||
]
|
||||
|
||||
IDENTICAL_ATTRIBUTES = %w[
|
||||
ident
|
||||
ident_type
|
||||
ident_country_code
|
||||
]
|
||||
|
||||
private_constant :IDENTIFIABLE_ATTRIBUTES
|
||||
|
||||
def identical(registrar)
|
||||
|
@ -21,7 +28,7 @@ module Concerns::Contact::Identical
|
|||
end
|
||||
|
||||
def identical_to?(contact)
|
||||
IDENTIFIABLE_ATTRIBUTES.all? do |attribute|
|
||||
IDENTICAL_ATTRIBUTES.all? do |attribute|
|
||||
self.attributes[attribute] == contact.attributes[attribute]
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue