Sha256: 872cfe0f4e075f0b61fd177a8be67e39204684c9f3196774625689f1912a391f

Contents?: true

Size: 809 Bytes

Versions: 4

Compression:

Stored size: 809 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 :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

4 entries across 4 versions & 1 rubygems

Version Path
phcdevworks_scripts-9.0.2 app/models/phcdevworks_scripts/script/url.rb
phcdevworks_scripts-9.0.1 app/models/phcdevworks_scripts/script/url.rb
phcdevworks_scripts-9.0.0 app/models/phcdevworks_scripts/script/url.rb
phcdevworks_scripts-8.2.0 app/models/phcdevworks_scripts/script/url.rb