Sha256: bee373905d93f0d2b152a336539c1e9e698cb0a2d8a667ede4259605444494f5
Contents?: true
Size: 758 Bytes
Versions: 2
Compression:
Stored size: 758 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 :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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
phcdevworks_scripts-3.0.1 | app/models/phcdevworks_scripts/script/url.rb |
phcdevworks_scripts-3.0.0 | app/models/phcdevworks_scripts/script/url.rb |