app/models/phcmemberspro/directory/category.rb in phcmemberspro-5.4.0 vs app/models/phcmemberspro/directory/category.rb in phcmemberspro-5.4.1
- old
+ new
@@ -5,10 +5,10 @@
has_many :catlists, class_name: 'Directory::Catlist'
# Validation for Form Fields
validates :catname,
presence: true,
- uniqueness => {:scope => :user_id},
+ uniqueness: {scope: :user_id},
length: { minimum: 3 }
end
end