Sha256: d11660300d260ad4d8f0bf3b3a93551e78c3437587a84e5a4bc966d866c6e3ff

Contents?: true

Size: 444 Bytes

Versions: 3

Compression:

Stored size: 444 Bytes

Contents

# Boolean

#### Rules

```ruby
# 1. Pattern
'true_values'  => [true, 1, '1', 't', 'T', 'true', 'TRUE']
'false values' => [false, 0, '0', 'f', 'F', 'false', 'FALSE']
```

#### Options

Option | Type | Available | Default
--- | --- | --- | ---
check | symbol | all, false_only, true_only | all

#### Usage

```ruby
class User < ActiveRecord::Base

  validates :input_0, boolean: true
  validates :input_1, boolean: { check: :true_only }

end
```

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
lite-validators-1.1.0 docs/BOOLEAN.md
lite-validators-1.0.7 docs/BOOLEAN.md
lite-validators-1.0.6 docs/BOOLEAN.md