Sha256: 6c30062c4b057265d783823f0bd8e00f80b3453e0265a7ec58b512a7a8687863
Contents?: true
Size: 737 Bytes
Versions: 10
Compression:
Stored size: 737 Bytes
Contents
module Phcscriptcdn class Script::Url < ApplicationRecord # Paper Trail Initialize has_paper_trail :class_name => 'Phcscriptcdn::UrlVersions' # Relationships belongs_to :listing, class_name: 'Phcscriptcdn::Script::Listing' belongs_to :extension, class_name: 'Phcscriptcdn::Script::Extension' belongs_to :version, class_name: 'Phcscriptcdn::Script::Version', optional: true # Form Fields Validation validates :script_url, presence: true, format: { with: URI::regexp(%w(http https)), message: "Please follow this URL format http or https://www.**********.com" } validates :script_url_release, presence: true validates :script_url_cdn_update, presence: true end end
Version data entries
10 entries across 10 versions & 1 rubygems