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

@@ -4,8 +4,8 @@ class IpAddressesController < ApplicationController
respond_to :html, :xml, :json
def show
@ip_address = authorize IpAddress.new(ip_addr: params[:id])
@ip_info = @ip_address.ip_addr.ip_info
@ip_address = authorize Danbooru::IpAddress.new(params[:id]), policy_class: IpAddressPolicy
@ip_info = @ip_address.ip_info
respond_with(@ip_info)
end
end