mirror of
https://github.com/internetee/registry.git
synced 2025-05-18 18:29:40 +02:00
Added manage pending link to history #2785
This commit is contained in:
parent
e387ea4bb4
commit
d524642742
3 changed files with 3 additions and 11 deletions
|
@ -3,7 +3,7 @@ class Admin::DomainVersionsController < AdminController
|
|||
|
||||
# rubocop:disable Style/GuardClause
|
||||
def index
|
||||
@domain = Domain.find(params[:domain_id])
|
||||
@domain = Domain.where(id: params[:domain_id]).includes({versions: :item}).first
|
||||
@versions = @domain.versions
|
||||
|
||||
if @domain.pending_json.present?
|
||||
|
@ -13,13 +13,4 @@ class Admin::DomainVersionsController < AdminController
|
|||
end
|
||||
end
|
||||
# rubocop:enable Style/GuardClause
|
||||
|
||||
# def index
|
||||
# # @q = DomainVersion.deleted.search(params[:q])
|
||||
# # @domains = @q.result.page(params[:page])
|
||||
# end
|
||||
|
||||
# def show
|
||||
# @versions = DomainVersion.where(item_id: params[:id])
|
||||
# end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue