app/models/phcmemberspro/directory/category.rb in phcmemberspro-5.3.10 vs app/models/phcmemberspro/directory/category.rb in phcmemberspro-5.4.0

- old
+ new

@@ -1,19 +1,14 @@ module Phcmemberspro class Directory::Category < ActiveRecord::Base - # Account Scope - def self.scoped_to(useraccount) - where(:user_id => current_user.id) - end - # Model Relationship has_many :catlists, class_name: 'Directory::Catlist' # Validation for Form Fields validates :catname, presence: true, - uniqueness: true, + uniqueness => {:scope => :user_id}, length: { minimum: 3 } end end