mirror of
https://github.com/internetee/registry.git
synced 2025-06-11 07:04:47 +02:00
Fix Rubocop issues after Ruby upgrade
This commit is contained in:
parent
3c1125879c
commit
15a651e51b
18 changed files with 25 additions and 26 deletions
|
@ -37,7 +37,7 @@ class DomainNameValidator < ActiveModel::EachValidator
|
|||
|
||||
def validate_blocked(value)
|
||||
return true unless value
|
||||
return false if BlockedDomain.where(name: value).count > 0
|
||||
return false if BlockedDomain.where(name: value).count.positive?
|
||||
DNS::Zone.where(origin: value).count.zero?
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue