app/validators/ip_format_validator.rb in metasploit-model-2.0.4 vs app/validators/ip_format_validator.rb in metasploit-model-3.0.0

- old
+ new

@@ -2,10 +2,10 @@ # Validates that value is an IPv4 or IPv6 address. class IpFormatValidator < ActiveModel::EachValidator # Validates that `value` is an IPv4 or IPv4 address. Ranges in CIDR or netmask notation are not allowed. # - # @param record [#errors, ActiveRecord::Base] ActiveModel or ActiveRecord + # @param record [#errors, ApplicationRecord] ActiveModel or ActiveRecord # @param attribute [Symbol] name of IP address attribute. # @param value [String, nil] IP address. # @return [void] # @see IPAddr#ipv4? # @see IPAddr#ipv6?