app/models/phcscriptcdnpro/script/url.rb in phcscriptcdnpro-78.4.0 vs app/models/phcscriptcdnpro/script/url.rb in phcscriptcdnpro-79.0.0

- old
+ new

@@ -1,24 +1,24 @@ module Phcscriptcdnpro - class Script::Url < ApplicationRecord + class Script::Url < ApplicationRecord - # Paper Trail Initialize - has_paper_trail :class_name => 'Phcscriptcdnpro::UrlVersions' + # 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 + # 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" } + # 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_release, + presence: true - validates :script_url_cdn_update, - presence: true + validates :script_url_cdn_update, + presence: true - end + end end