docs/URL.md in lite-validators-1.3.2 vs docs/URL.md in lite-validators-1.4.0
- old
+ new
@@ -20,9 +20,11 @@
class User < ActiveRecord::Base
validates :input0, url: true
validates :input1, url: { domain: [:com, 'org'] }
validates :input2, url: { scheme: :https }
- validates :input3, url: { root_only: true }
+ validates :input3, url: { include_host: ['example', 'test.org'] }
+ validates :input4, url: { exclude_host: ['example', 'test.org'] }
+ validates :input5, url: { root_only: true }
end
```