app/models/phcscriptcdnpro/script/licence.rb in phcscriptcdnpro-73.0.0 vs app/models/phcscriptcdnpro/script/licence.rb in phcscriptcdnpro-73.1.0
- old
+ new
@@ -9,22 +9,22 @@
# Relationships
has_many :listings, class_name: 'Phcscriptcdnpro::Script::Listing'
# Validation for Form Fields
- validates :lcncname,
+ validates :licence_name,
presence: true
- validates :lcncdescript,
+ validates :licence_description,
presence: true
# Clean URL Define
friendly_id :phcscriptcdnpro_licence_slug, use: [:slugged, :finders]
# Define for Multiple Records
def phcscriptcdnpro_licence_slug
[
- [:lcncname]
+ [:licence_name]
]
end
end
end