mirror of
https://github.com/internetee/registry.git
synced 2025-08-02 16:02:03 +02:00
Test fixes #2565
This commit is contained in:
parent
647d074b8b
commit
b6dd532171
7 changed files with 18 additions and 13 deletions
|
@ -42,10 +42,10 @@ class DomainNameValidator < ActiveModel::EachValidator
|
|||
BlockedDomain.where("names @> ?::varchar[]", "{#{value}}").count == 0
|
||||
end
|
||||
|
||||
def validate_reservation(record, value)
|
||||
return true unless value
|
||||
return true if record.reserved_pw == record.auth_info
|
||||
!ReservedDomain.exists?(name: value.mb_chars.downcase.strip)
|
||||
end
|
||||
# def validate_reservation(record, value)
|
||||
# return true unless value
|
||||
# return true if record.reserved_pw == record.auth_info
|
||||
# !ReservedDomain.exists?(name: value.mb_chars.downcase.strip)
|
||||
# end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue