app/models/phcmemberspro/members/contact.rb in phcmemberspro-5.3.9 vs app/models/phcmemberspro/members/contact.rb in phcmemberspro-5.3.10
- old
+ new
@@ -1,10 +1,10 @@
module Phcmemberspro
class Members::Contact < 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
# Translate Country Code to Name
def country_name
country = ISO3166::Country[mccountry]