Sha256: c7c800f877c8811c7b41178d7ba0db42c3a1d1db9a21c5701d7686ac7cb2c318
Contents?: true
Size: 470 Bytes
Versions: 9
Compression:
Stored size: 470 Bytes
Contents
# URL #### Rules ```ruby # 1. Pattern ``` #### Options Option | Type | Available | Default --- | --- | --- | --- domain | array, string, symbol | | root_only | boolean | true, false | false scheme | array, string, symbol | | #### Usage ```ruby class User < ActiveRecord::Base validates :input_0, url: true validates :input_1, url: { domain: [:com, 'org'] } validates :input_2, url: { scheme: :https } validates :input_3, url: { root_only: true } end ```
Version data entries
9 entries across 9 versions & 1 rubygems