mirror of
https://github.com/internetee/registry.git
synced 2025-05-19 02:39:37 +02:00
Adding nameservers to domain
This commit is contained in:
parent
24e7beed5b
commit
c24c8c7181
10 changed files with 69 additions and 8 deletions
|
@ -1,7 +1,5 @@
|
|||
class Admin::RegistrarsController < ApplicationController
|
||||
def search
|
||||
r = Registrar.arel_table
|
||||
query_string = "%#{params[:query]}%"
|
||||
render json: Registrar.where(r[:name].matches(query_string)).pluck(:name)
|
||||
render json: Registrar.search_by_query(params[:query])
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue