mirror of
https://github.com/internetee/registry.git
synced 2025-05-17 17:59:47 +02:00
14 lines
275 B
Ruby
14 lines
275 B
Ruby
class Admin::DomainsController < ApplicationController
|
|
before_action :set_domain, only: [:show]
|
|
|
|
def index
|
|
@q = Domain.search(params[:q])
|
|
@domains = @q.result.page(params[:page])
|
|
end
|
|
|
|
private
|
|
|
|
def set_domain
|
|
@domain = Domain.find(params[:id])
|
|
end
|
|
end
|