Sha256: e671d0984e94722c018f9b6c48a3465f6eca4ec932f03c98967a3faaf0940356
Contents?: true
Size: 477 Bytes
Versions: 1
Compression:
Stored size: 477 Bytes
Contents
module Phccodesnipper class Script::Url < ApplicationRecord # Include Core Validations phc_domain_regx = URI::regexp(%w(http https)) # Relationships belongs_to :snippet, class_name: 'Phccodesnipper::Script::Snippet' # Form Fields Validation validates :script_url, presence: true, length: { minimum: 5 }, format: { :with => phc_domain_regx, message: "Please follow this URL format http or https://www.**********.com" } end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
phccodesnipper-1.1.0 | app/models/phccodesnipper/script/url.rb |