app/models/phcscriptcdnpro/script/extension.rb in phcscriptcdnpro-73.1.0 vs app/models/phcscriptcdnpro/script/extension.rb in phcscriptcdnpro-74.0.0

- old
+ new

@@ -2,34 +2,31 @@ class Script::Extension < ApplicationRecord # Clean URL Initialize extend FriendlyId - # Add Paper Trail + # Paper Trail Initialize has_paper_trail :class_name => 'Phcscriptcdnpro::ExtensionVersions' # Relationships has_many :listings, class_name: 'Phcscriptcdnpro::Script::Listing', :through => :urls has_many :urls, class_name: 'Phcscriptcdnpro::Script::Url' - # Validation for Form Fields + # Form Fields Validation validates :script_extension_name, presence: true validates :script_extension_description, presence: true validates :script_extension, presence: true # Clean URL Define - friendly_id :phcscriptcdnpro_extentension_slug, use: [:slugged, :finders] + friendly_id :phc_nice_url_slug, use: [:slugged, :finders] - # Define for Multiple Records - def phcscriptcdnpro_extentension_slug - [ - [:script_extension] - ] + def phc_nice_url_slug + [:script_extension] end end end