phcmemberspro 5.3.9 → 5.3.10

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 9c3ad3c4921da2fa21b224cbc33de2ecbe4b9cee
4
- data.tar.gz: fbbbcf8403f3235d9643d54891c0dcf7cbac1ba3
3
+ metadata.gz: 7c18ddd69d3c271bbde9e861692d777419217cfa
4
+ data.tar.gz: 33765b089c6db552ef0a4c081887cb7f15ba96ad
5
5
  SHA512:
6
- metadata.gz: e8bf28a9e37915df18c3d46fc2e08dfb086a1c6c4c62f933262add470e95a51fb1bffbf52a76334e9868e4d7eb061e908ffe12f82c794513799cc5077bc9faf7
7
- data.tar.gz: 3976f87d25f4d418af0614ec870ddbf484d5332421fafa27009f716b7fa9a07bd697296a07ca7b6a8e9602f6de8b33a91ed650c9025829abe98c5b88c326e1bd
6
+ metadata.gz: 7c308c5cec890d3fa2a3c2e225e5bdb50ef7559a389d290b7a495be8e90c88fb7f2c97ebaa5c7c6e63135df8932505864ec8187e37bb4c84bcaf2ae83296f6b1
7
+ data.tar.gz: 1b5caabf171315e3f27b8d4b8a905e7e24138cddc6967aded6926d40c9bb7f44d7498ac7e529986fc9965adeeb4f1d4bd0f7ecb6ff99e4dfac3d24e26dbd2623
@@ -2,8 +2,8 @@ module Phcmemberspro
2
2
  class Directory::Category < ActiveRecord::Base
3
3
 
4
4
  # Account Scope
5
- def self.scoped_to(account)
6
- where(:account_id => account.id)
5
+ def self.scoped_to(useraccount)
6
+ where(:user_id => current_user.id)
7
7
  end
8
8
 
9
9
  # Model Relationship
@@ -2,8 +2,8 @@ module Phcmemberspro
2
2
  class Directory::Catlist < ActiveRecord::Base
3
3
 
4
4
  # Account Scope
5
- def self.scoped_to(account)
6
- where(:account_id => account.id)
5
+ def self.scoped_to(useraccount)
6
+ where(:user_id => current_user.id)
7
7
  end
8
8
 
9
9
  # Model Relationship
@@ -2,8 +2,8 @@ module Phcmemberspro
2
2
  class Members::Business < ActiveRecord::Base
3
3
 
4
4
  # Account Scope
5
- def self.scoped_to(account)
6
- where(:account_id => account.id)
5
+ def self.scoped_to(useraccount)
6
+ where(:user_id => current_user.id)
7
7
  end
8
8
 
9
9
  # Translate Country Code to Name
@@ -2,8 +2,8 @@ module Phcmemberspro
2
2
  class Members::Contact < ActiveRecord::Base
3
3
 
4
4
  # Account Scope
5
- def self.scoped_to(account)
6
- where(:account_id => account.id)
5
+ def self.scoped_to(useraccount)
6
+ where(:user_id => current_user.id)
7
7
  end
8
8
 
9
9
  # Translate Country Code to Name
@@ -6,8 +6,8 @@ module Phcmemberspro
6
6
  gravtastic :memail
7
7
 
8
8
  # Account Scope
9
- def self.scoped_to(account)
10
- where(:account_id => account.id)
9
+ def self.scoped_to(useraccount)
10
+ where(:user_id => current_user.id)
11
11
  end
12
12
 
13
13
  # Model Relationship
@@ -1,3 +1,3 @@
1
1
  module Phcmemberspro
2
- VERSION = "5.3.9"
2
+ VERSION = "5.3.10"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: phcmemberspro
3
3
  version: !ruby/object:Gem::Version
4
- version: 5.3.9
4
+ version: 5.3.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - BradPotts