ip bans: fix ip addresses with trailing spaces being invalid.

This commit is contained in:
evazion
2020-04-07 18:47:51 -05:00
parent 16011771f1
commit c9d5b168e5

View File

@@ -73,6 +73,10 @@ class IpBan < ApplicationRecord
str
end
def ip_addr=(ip_addr)
super(ip_addr.strip)
end
def self.available_includes
[:creator]
end