Sha256: cf1d4ecfcdba533b310a373e2f7af58c9b0c876b3d6bef9b085998f9210d2961

Contents?: true

Size: 610 Bytes

Versions: 4

Compression:

Stored size: 610 Bytes

Contents

module Phcscriptcdn
  class Script::Url < ApplicationRecord

    # Relationships

    # Attach to Listings (Nested)
    belongs_to :listing, class_name: 'Phcscriptcdn::Script::Listing'

    # Attach to Version (None Nested)
    belongs_to :version, class_name: 'Phcscriptcdn::Script::Version'

    # Attach to Extension (None Nested)
    belongs_to :extension, class_name: 'Phcscriptcdn::Script::Extension'

    # Validation for Form Fields
    validates :scripturl,
      presence: true

    validates :scripturlrelease,
      presence: true

    validates :scripturlcdnupdate,
      presence: true

  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
phcscriptcdn-5.1.2 app/models/phcscriptcdn/script/url.rb
phcscriptcdn-5.1.1 app/models/phcscriptcdn/script/url.rb
phcscriptcdn-5.1.0 app/models/phcscriptcdn/script/url.rb
phcscriptcdn-5.0.1 app/models/phcscriptcdn/script/url.rb