From ca09833bb7e82b75dff83689e36277d1c4259b78 Mon Sep 17 00:00:00 2001 From: Artur Beljajev Date: Mon, 18 Jun 2018 01:20:55 +0300 Subject: [PATCH] Remove dead code `Contact#statuses` is never validated --- .../registrant/contacts/show/_statuses.html.erb | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/app/views/registrant/contacts/show/_statuses.html.erb b/app/views/registrant/contacts/show/_statuses.html.erb index 975669cde..07db6bc87 100644 --- a/app/views/registrant/contacts/show/_statuses.html.erb +++ b/app/views/registrant/contacts/show/_statuses.html.erb @@ -1,5 +1,4 @@ -<% panel_class = contact.errors.messages[:statuses] ? 'panel-danger' : 'panel-default' %> -
+
<%= t '.header' %>
@@ -21,16 +20,6 @@ <% end %> - - <% if contact.errors.messages[:statuses] %> - - <% @domain.errors.messages[:statuses].each do |s| %> - - <%= s %> - - <% end %> - - <% end %>
\ No newline at end of file