mirror of
https://github.com/internetee/registry.git
synced 2025-05-19 02:39:37 +02:00
7 lines
229 B
Ruby
7 lines
229 B
Ruby
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)
|
|
end
|
|
end
|