app/models/phcscriptcdnpro/script/extension.rb in phcscriptcdnpro-73.0.0 vs app/models/phcscriptcdnpro/script/extension.rb in phcscriptcdnpro-73.1.0
- old
+ new
@@ -10,25 +10,25 @@
# Relationships
has_many :listings, class_name: 'Phcscriptcdnpro::Script::Listing', :through => :urls
has_many :urls, class_name: 'Phcscriptcdnpro::Script::Url'
# Validation for Form Fields
- validates :scriptextensionname,
+ validates :script_extension_name,
presence: true
- validates :scriptextensiondes,
+ validates :script_extension_description,
presence: true
- validates :scriptextension,
+ validates :script_extension,
presence: true
# Clean URL Define
friendly_id :phcscriptcdnpro_extentension_slug, use: [:slugged, :finders]
# Define for Multiple Records
def phcscriptcdnpro_extentension_slug
[
- [:scriptextensionname, :scriptextension]
+ [:script_extension]
]
end
end
end