internetee-registry/app/controllers/registrant/domain_delete_confirms_controller.rb
2015-05-19 15:08:03 +03:00

12 lines
348 B
Ruby

class Registrant::DomainDeleteConfirmsController < RegistrantController
skip_before_action :authenticate_user!, only: [:show, :create]
skip_authorization_check only: [:show, :create]
def show
@domain = Domain.find(params[:id])
@domain = nil unless @domain.registrant_delete_confirmable?(params[:token])
end
def create
end
end