ActiveModel validations for IPv4 and IPv6 addresses using IPAddr