mirror of
https://github.com/internetee/registry.git
synced 2025-05-17 09:57:23 +02:00
18 lines
317 B
Ruby
18 lines
317 B
Ruby
class Admin::DomainsController < ApplicationController
|
|
before_action :set_domain, only: [:show]
|
|
|
|
def new
|
|
@domain = Domain.new
|
|
end
|
|
|
|
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
|