app/models/phcmemberspro/directory/category.rb in phcmemberspro-14.7.1 vs app/models/phcmemberspro/directory/category.rb in phcmemberspro-14.7.2

- old
+ new

@@ -1,12 +1,15 @@ module Phcmemberspro class Directory::Category < ApplicationRecord - + # Add Paper Trail has_paper_trail - + # Model Relationships has_many :categorylistings, class_name: 'Phcmemberspro::Directory::Categorylisting', dependent: :destroy has_many :listings, class_name: 'Phcmemberspro::Member::Listing', :through => :categorylistings - + + validates :catname, + length: { minimum: 3 } + end end