mirror of
https://github.com/internetee/registry.git
synced 2025-05-17 09:57:23 +02:00
25 lines
721 B
Ruby
25 lines
721 B
Ruby
class Admin::DomainVersionsController < AdminController
|
|
load_and_authorize_resource
|
|
|
|
# rubocop:disable Style/GuardClause
|
|
def index
|
|
@domain = Domain.find(params[:domain_id])
|
|
@versions = @domain.versions
|
|
|
|
if @domain.pending_json.present?
|
|
frame = Nokogiri::XML(@domain.pending_json['frame'])
|
|
@pending_user = User.find(@domain.pending_json['current_user_id'])
|
|
@pending_domain = Epp::Domain.new_from_epp(frame, @pending_user)
|
|
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
|