Remove IpAddress model.
This commit is contained in:
@@ -18,7 +18,7 @@
|
||||
</tr>
|
||||
<% end %>
|
||||
|
||||
<% if policy(IpAddress).show? %>
|
||||
<% if policy(:ip_address).show? %>
|
||||
<tr>
|
||||
<th>Last IP</th>
|
||||
<td>
|
||||
|
||||
@@ -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) %>
|
||||
|
||||
@@ -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 %>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user