Sha256: 06c2a5fb68bff4e9bdd2f431c4e1b1ac90a57150a8bc4d6d6f88ef27bc5a32de

Contents?: true

Size: 764 Bytes

Versions: 15

Compression:

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

15 entries across 15 versions & 1 rubygems

Version Path
phcdevworks_scripts-5.8.0 app/models/phcdevworks_scripts/script/url.rb
phcdevworks_scripts-5.7.1 app/models/phcdevworks_scripts/script/url.rb
phcdevworks_scripts-5.7.0 app/models/phcdevworks_scripts/script/url.rb
phcdevworks_scripts-5.6.0 app/models/phcdevworks_scripts/script/url.rb
phcdevworks_scripts-5.5.0 app/models/phcdevworks_scripts/script/url.rb
phcdevworks_scripts-5.4.0 app/models/phcdevworks_scripts/script/url.rb
phcdevworks_scripts-5.3.0 app/models/phcdevworks_scripts/script/url.rb
phcdevworks_scripts-5.2.0 app/models/phcdevworks_scripts/script/url.rb
phcdevworks_scripts-5.1.0 app/models/phcdevworks_scripts/script/url.rb
phcdevworks_scripts-5.0.0 app/models/phcdevworks_scripts/script/url.rb
phcdevworks_scripts-4.1.1 app/models/phcdevworks_scripts/script/url.rb
phcdevworks_scripts-4.1.0 app/models/phcdevworks_scripts/script/url.rb
phcdevworks_scripts-4.0.2 app/models/phcdevworks_scripts/script/url.rb
phcdevworks_scripts-4.0.1 app/models/phcdevworks_scripts/script/url.rb
phcdevworks_scripts-4.0.0 app/models/phcdevworks_scripts/script/url.rb