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