Sha256: 5651e2844a6e35998e18ce00762393df03b87b0db329dd4c59c524592445306b

Contents?: true

Size: 752 Bytes

Versions: 8

Compression:

Stored size: 752 Bytes

Contents

module Phcscriptcdnpro
  class Script::Url < ApplicationRecord

    # Paper Trail Initialize
    has_paper_trail :class_name => 'Phcscriptcdnpro::UrlVersions'

    # Relationships
    belongs_to :listing, class_name: 'Phcscriptcdnpro::Script::Listing'
    belongs_to :extension, class_name: 'Phcscriptcdnpro::Script::Extension'
    belongs_to :version, class_name: 'Phcscriptcdnpro::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

8 entries across 8 versions & 1 rubygems

Version Path
phcscriptcdnpro-78.4.0 app/models/phcscriptcdnpro/script/url.rb
phcscriptcdnpro-78.3.0 app/models/phcscriptcdnpro/script/url.rb
phcscriptcdnpro-78.2.0 app/models/phcscriptcdnpro/script/url.rb
phcscriptcdnpro-78.1.0 app/models/phcscriptcdnpro/script/url.rb
phcscriptcdnpro-78.0.0 app/models/phcscriptcdnpro/script/url.rb
phcscriptcdnpro-77.0.0 app/models/phcscriptcdnpro/script/url.rb
phcscriptcdnpro-75.0.0 app/models/phcscriptcdnpro/script/url.rb
phcscriptcdnpro-74.0.0 app/models/phcscriptcdnpro/script/url.rb