Sha256: 02ed0c1ea7f0c3d39769e3120f7ce8e76bf188316229e72e395db5f719e68a32

Contents?: true

Size: 394 Bytes

Versions: 13

Compression:

Stored size: 394 Bytes

Contents

# Email

#### Rules

```ruby
# 1. Pattern
/\A([^@\s]+)@((?:[-a-z0-9]+\.)+[a-z]{2,})\z/i
```

#### Options

Option | Type | Available | Default
--- | --- | --- | ---
domain | array, string, symbol | |

#### Usage

```ruby
class User < ActiveRecord::Base

  validates :input0, email: true
  validates :input1, email: { domain: 'com' }
  validates :input2, email: { domain: %w[com org] }

end
```

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
lite-validators-1.8.0 docs/EMAIL.md
lite-validators-1.7.2 docs/EMAIL.md
lite-validators-1.7.1 docs/EMAIL.md
lite-validators-1.7.0 docs/EMAIL.md
lite-validators-1.6.0 docs/EMAIL.md
lite-validators-1.5.0 docs/EMAIL.md
lite-validators-1.4.0 docs/EMAIL.md
lite-validators-1.3.2 docs/EMAIL.md
lite-validators-1.3.1 docs/EMAIL.md
lite-validators-1.3.0 docs/EMAIL.md
lite-validators-1.2.0 docs/EMAIL.md
lite-validators-1.1.2 docs/EMAIL.md
lite-validators-1.1.1 docs/EMAIL.md