Remove IpAddress model.

This commit is contained in:
evazion
2022-09-17 23:29:57 -05:00
parent 075199cd1e
commit 553d35178c
8 changed files with 12 additions and 68 deletions

View File

@@ -18,7 +18,7 @@
</tr>
<% end %>
<% if policy(IpAddress).show? %>
<% if policy(:ip_address).show? %>
<tr>
<th>Last IP</th>
<td>

View File

@@ -15,7 +15,7 @@
<% t.column "Name", td: { class: "col-expand" } do |user| %>
<%= link_to_user user %>
<% end %>
<% if policy(IpAddress).show? %>
<% if policy(:ip_address).show? %>
<% t.column "IP" do |user| %>
<% if user.last_ip_addr.present? %>
<%= link_to user.last_ip_addr, ip_address_path(user.last_ip_addr) %>

View File

@@ -34,7 +34,7 @@
<div class="user-tooltip-header-bottom">
<%= time_tag @user.created_at.to_date.iso8601, @user.created_at, class: "user-tooltip-created-at" %>
<% if @user.last_ip_addr.present? && policy(IpAddress).show? %>
<% if @user.last_ip_addr.present? && policy(:ip_address).show? %>
· <%= link_to_ip @user.last_ip_addr, shorten: true, class: "link-plain" %>
<% end %>