Fix #4736: Display network prefix length (if present) in API key IP whitelist.

This commit is contained in:
evazion
2021-03-01 02:23:05 -06:00
parent e5bbc039ae
commit 35a0c6b11f
8 changed files with 42 additions and 12 deletions

View File

@@ -11,7 +11,6 @@ ActiveSupport::Inflector.inflections(:en) do |inflect|
# inflect.uncountable %w( fish sheep )
end
# These inflection rules are supported but not enabled by default:
# ActiveSupport::Inflector.inflections(:en) do |inflect|
# inflect.acronym 'RESTful'
# end
#ActiveSupport::Inflector.inflections(:en) do |inflect|
# inflect.acronym "IP" # IPAddress
#end

View File

@@ -0,0 +1 @@
ActiveRecord::Type.register(:ip_address, IpAddressType)