Sha256: 2592b1651d6f7d23e3bca574441a6a40c1b0789077ab33ca20fce92a736868a0

Contents?: true

Size: 684 Bytes

Versions: 6

Compression:

Stored size: 684 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 | |
include_host | array, string, symbol | |
exclude_host | array, string, symbol | |

#### Usage

```ruby
class User < ActiveRecord::Base

  validates :input0, url: true
  validates :input1, url: { domain: [:com, 'org'] }
  validates :input2, url: { scheme: :https }
  validates :input3, url: { include_host: ['example', 'test.org'] }
  validates :input4, url: { exclude_host: ['example', 'test.org'] }
  validates :input5, url: { root_only: true }

end
```

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
lite-validators-1.8.0 docs/URL.md
lite-validators-1.7.2 docs/URL.md
lite-validators-1.7.1 docs/URL.md
lite-validators-1.7.0 docs/URL.md
lite-validators-1.6.0 docs/URL.md
lite-validators-1.5.0 docs/URL.md