app/models/phcmembers/directory/category.rb in phcmembers-0.8.0 vs app/models/phcmembers/directory/category.rb in phcmembers-0.9.6

- old
+ new

@@ -1,7 +1,12 @@ module Phcmembers class Directory::Category < ActiveRecord::Base + # Mtdevise Scope + 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,