docs/IP_ADDRESS.md in lite-validators-1.4.0 vs docs/IP_ADDRESS.md in lite-validators-1.5.0
- old
+ new
@@ -11,16 +11,20 @@
#### Options
Option | Type | Available | Default
--- | --- | --- | ---
protocol | symbol | any, ipv4, ipv6 | any
+include_address | array, string, symbol | |
+exclude_address | array, string, symbol | |
#### Usage
```ruby
class User < ActiveRecord::Base
validates :input0, ip_address: true
validates :input1, ip_address: { protocol: :ipv4 }
+ validates :input2, ip_address: { include_address: ['0.0.0.0', '99.39.240.31'] }
+ validates :input3, ip_address: { exclude_address: ['0.0.0.0', '99.39.240.31'] }
end
```