Skip to content

Commit

Permalink
Remove duplicate route
Browse files Browse the repository at this point in the history
  • Loading branch information
Artur Beljajev committed Oct 18, 2019
1 parent 227031e commit c022caa
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion app/views/admin/domains/_domain.html.erb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<tr>
<td><%= link_to domain, admin_domain_path(domain) %></td>
<td><%= link_to domain.registrant, admin_registrant_path(domain.registrant) %></td>
<td><%= link_to domain.registrant, admin_contact_path(domain.registrant) %></td>
<td><%= l domain.expire_time %></td>
<td><%= link_to domain.registrar, admin_registrar_path(domain.registrar) %></td>
</tr>
2 changes: 1 addition & 1 deletion app/views/admin/domains/partials/_owner.haml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
.panel-body
%dl.dl-horizontal
%dt= t(:name)
%dd= link_to(@domain.registrant, [:admin, @domain.registrant])
%dd= link_to @domain.registrant, admin_contact_path(@domain.registrant)

%dt= t(:id)
%dd= @domain.registrant.code
Expand Down
2 changes: 0 additions & 2 deletions config/routes.rb
Original file line number Diff line number Diff line change
Expand Up @@ -269,8 +269,6 @@
resources :white_ips
end

resources :registrants, controller: 'contacts'

resources :contacts do
collection do
get 'search'
Expand Down

0 comments on commit c022caa

Please sign in to comment.