mirror of
https://github.com/internetee/registry.git
synced 2025-07-23 03:06:14 +02:00
Adding nameservers to domain
This commit is contained in:
parent
24e7beed5b
commit
c24c8c7181
10 changed files with 69 additions and 8 deletions
|
@ -7,4 +7,11 @@ class Registrar < ActiveRecord::Base
|
|||
def to_s
|
||||
name
|
||||
end
|
||||
|
||||
class << self
|
||||
def search_by_query(query)
|
||||
res = Registrar.search(name_or_reg_no_cont: query).result
|
||||
res.reduce([]) { |o, v| o << { id: v[:id], display: "#{v[:name]} (#{v[:reg_no]})" } }
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue