app/models/phcmemberspro/directory/category.rb in phcmemberspro-5.3.9 vs app/models/phcmemberspro/directory/category.rb in phcmemberspro-5.3.10
- old
+ new
@@ -1,10 +1,10 @@
module Phcmemberspro
class Directory::Category < ActiveRecord::Base
# Account Scope
- def self.scoped_to(account)
- where(:account_id => account.id)
+ def self.scoped_to(useraccount)
+ where(:user_id => current_user.id)
end
# Model Relationship
has_many :catlists, class_name: 'Directory::Catlist'