app/models/phcmemberspro/directory/category.rb in phcmemberspro-1.8.0 vs app/models/phcmemberspro/directory/category.rb in phcmemberspro-2.1.0
- old
+ new
@@ -1,17 +1,17 @@
module Phcmemberspro
class Directory::Category < ActiveRecord::Base
# Account Scope
- def self.scoped_to(account)
- where(:account_id => account.id)
- end
+ def self.scoped_to(account)
+ where(:account_id => account.id)
+ end
# Model Relationship
has_many :catlists, class_name: 'Directory::Catlist'
# Validation for Form Fields
- validates :catname,
+ validates :catname,
presence: true,
uniqueness: true,
length: { minimum: 3 }
end