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

Version Path
phcscriptcdn-55.0.3 app/models/phcscriptcdn/script/url.rb
phcscriptcdn-55.0.2 app/models/phcscriptcdn/script/url.rb
phcscriptcdn-55.0.1 app/models/phcscriptcdn/script/url.rb
phcscriptcdn-55.0.0 app/models/phcscriptcdn/script/url.rb
phcscriptcdn-54.3.0 app/models/phcscriptcdn/script/url.rb
phcscriptcdn-54.2.0 app/models/phcscriptcdn/script/url.rb
phcscriptcdn-54.1.0 app/models/phcscriptcdn/script/url.rb
phcscriptcdn-54.0.0 app/models/phcscriptcdn/script/url.rb
phcscriptcdn-53.0.0 app/models/phcscriptcdn/script/url.rb
phcscriptcdn-52.0.0 app/models/phcscriptcdn/script/url.rb