Sha256: c139754c448789db8706fbe59947b59a70aaef78759938ac31c30568b8d9b3db

Contents?: true

Size: 397 Bytes

Versions: 9

Compression:

Stored size: 397 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 :input_0, email: true
  validates :input_1, email: { domain: 'com' }
  validates :input_2, email: { domain: %w[com org] }

end
```

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
lite-validators-1.1.0 docs/EMAIL.md
lite-validators-1.0.7 docs/EMAIL.md
lite-validators-1.0.6 docs/EMAIL.md
lite-validators-1.0.5 docs/EMAIL.md
lite-validators-1.0.4 docs/EMAIL.md
lite-validators-1.0.3 docs/EMAIL.md
lite-validators-1.0.2 docs/EMAIL.md
lite-validators-1.0.1 docs/EMAIL.md
lite-validators-1.0.0 docs/EMAIL.md