Sha256: e9f744fc11373607d84f9a24f559c6643bc215f5179857ccb4aa75be4b6cb64f
Contents?: true
Size: 485 Bytes
Versions: 5
Compression:
Stored size: 485 Bytes
Contents
# List #### Rules ```ruby # 1. Check ``` #### Options Option | Type | Available | Default --- | --- | --- | --- all | array | | any | array | | none | array | | #### Usage ```ruby class User < ActiveRecord::Base validates :input0, list: { all: %w[monday tuesday] } validates :input1, list: { any: %w[saturday sunday] } validates :input2, list: { none: %w[wednesday thursday] } validates :input3, list: { any: %w[saturday sunday], none: %w[wednesday thursday] } end ```
Version data entries
5 entries across 5 versions & 1 rubygems
Version | Path |
---|---|
lite-validators-1.8.0 | docs/LIST.md |
lite-validators-1.7.2 | docs/LIST.md |
lite-validators-1.7.1 | docs/LIST.md |
lite-validators-1.7.0 | docs/LIST.md |
lite-validators-1.6.0 | docs/LIST.md |