mirror of
https://github.com/internetee/registry.git
synced 2025-07-02 17:23:34 +02:00
Domain versioning
This commit is contained in:
parent
d94eb22fc6
commit
a41505e319
16 changed files with 212 additions and 30 deletions
17
app/controllers/admin/domain_versions_controller.rb
Normal file
17
app/controllers/admin/domain_versions_controller.rb
Normal file
|
@ -0,0 +1,17 @@
|
|||
class Admin::DomainVersionsController < AdminController
|
||||
before_action :set_domain, only: [:show]
|
||||
|
||||
def index
|
||||
@q = Domain.search(params[:q])
|
||||
@domains = @q.result.page(params[:page])
|
||||
end
|
||||
|
||||
def show
|
||||
@versions = @domain.versions
|
||||
end
|
||||
|
||||
private
|
||||
def set_domain
|
||||
@domain = Domain.find(params[:id])
|
||||
end
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue