Add API data to show/index views
This commit is contained in:
@@ -42,4 +42,12 @@ class IpBan < ApplicationRecord
|
||||
str += "/" + ip_addr.prefix.to_s if has_subnet?
|
||||
str
|
||||
end
|
||||
|
||||
module ApiMethods
|
||||
def html_data_attributes
|
||||
[:creator_id]
|
||||
end
|
||||
end
|
||||
|
||||
include ApiMethods
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user