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