Sha256: 2890bb0277afbb96cbfab30f56e27fc466a9d5f14292b71d734eda07d152f166
Contents?: true
Size: 847 Bytes
Versions: 2
Compression:
Stored size: 847 Bytes
Contents
module Phcscriptcdn class Script::Url < ApplicationRecord # Clean URL Initialize extend FriendlyId # Add Paper Trail 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 # Validation for Form Fields validates :script_url, presence: true validates :script_url_release, presence: true validates :script_url_cdn_update, presence: true # Clean URL Define friendly_id :phcscriptcdn_url_slug, use: [:slugged, :finders] # Define for Multiple Records def phcscriptcdn_url_slug [ [:id] ] end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
phcscriptcdn-51.0.0 | app/models/phcscriptcdn/script/url.rb |
phcscriptcdn-50.0.0 | app/models/phcscriptcdn/script/url.rb |