Fix #4736: Display network prefix length (if present) in API key IP whitelist.
This commit is contained in:
@@ -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
|
||||
|
||||
1
config/initializers/types.rb
Normal file
1
config/initializers/types.rb
Normal file
@@ -0,0 +1 @@
|
||||
ActiveRecord::Type.register(:ip_address, IpAddressType)
|
||||
Reference in New Issue
Block a user