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