app/models/phcmemberspro/directory/category.rb in phcmemberspro-1.7.0 vs app/models/phcmemberspro/directory/category.rb in phcmemberspro-1.8.0
- old
+ new
@@ -1,7 +1,12 @@
module Phcmemberspro
class Directory::Category < ActiveRecord::Base
+ # Account 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,