mirror of
https://github.com/internetee/registry.git
synced 2025-07-21 02:05:57 +02:00
Refactor
This commit is contained in:
parent
2187be6364
commit
acb65c47d6
7 changed files with 39 additions and 70 deletions
|
@ -20,6 +20,8 @@ class Domain < ActiveRecord::Base
|
|||
|
||||
class << self
|
||||
def check_availability(domains)
|
||||
domains = [domains] if domains.is_a?(String)
|
||||
|
||||
res = []
|
||||
domains.each do |x|
|
||||
if !DomainNameValidator.validate(x)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue