Sha256: 13e47b5c38a6970aac1f473e36d3f75b6ad29f88bd62c680e053bf7ebbee0119
Contents?: true
Size: 779 Bytes
Versions: 7
Compression:
Stored size: 779 Bytes
Contents
module PhcdevworksScripts class Script::Url < ApplicationRecord # Paper Trail Initialize has_paper_trail :class_name => 'PhcdevworksScripts::UrlVersions' # 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 :script_cdn_url, presence: true, format: { with: URI::regexp(%w(http https)), message: "Please follow this URL format http or https://www.**********.com" } validates :script_cdn_url_release, presence: true validates :script_cdn_url_cdn_update, presence: true end end
Version data entries
7 entries across 7 versions & 1 rubygems