mirror of
https://github.com/internetee/registry.git
synced 2025-06-10 06:34:46 +02:00
Deprecate Registrant::WhoisController
This commit is contained in:
parent
f1808cfcf1
commit
b32809cdac
3 changed files with 3 additions and 2 deletions
|
@ -1,3 +1,5 @@
|
|||
# As non-GDPR compliant, this controller is deprecated. Needs to be replaced with one that relies
|
||||
# on the REST WHOIS API.
|
||||
class Registrant::WhoisController < RegistrantController
|
||||
def index
|
||||
authorize! :view, :registrant_whois
|
||||
|
|
|
@ -144,7 +144,6 @@ Rails.application.routes.draw do
|
|||
end
|
||||
|
||||
resources :contacts
|
||||
resources :whois
|
||||
end
|
||||
|
||||
|
||||
|
|
|
@ -12,6 +12,6 @@ class RegistrantLayoutTest < ActionDispatch::IntegrationTest
|
|||
def test_has_link_to_rest_whois
|
||||
visit registrant_domains_url
|
||||
assert(has_link?('Internet.ee', href: 'https://internet.ee'))
|
||||
refute(has_link?('WHOIS', href: registrant_whois_path))
|
||||
refute(has_link?('WHOIS', href: 'registrant/whois'))
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue