effective_resources 2.7.0 → 2.7.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7672ef626e66ae80fbb5b19feda283a58aab1d739f3dc753c012fffe6892d113
|
4
|
+
data.tar.gz: 0b5e7f03c53fbd78bff223c787753b3d391ff202f103d7cf3f063efb31fef5cb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: dc20991a7fd54070688e1ef3d9a3e1d818088ef714ce3da408e2b1ba6269f173944314c49a94236c9c9755f563476bb720979c857ff3e1744764b0f5d1eb13d1
|
7
|
+
data.tar.gz: 686c3ce4f47647496bf7e411d6cc6313c018ed8d84aab9abcf1488a96fb88a9f150b105ab26a2f0a371d236f07447258a92cc385601cce3c8ade89a2b649d784
|
@@ -53,7 +53,7 @@ module ActsAsPurchasableWizard
|
|
53
53
|
|
54
54
|
# Make sure all Fees are valid
|
55
55
|
fees.each do |fee|
|
56
|
-
raise(
|
56
|
+
raise("expected a valid fee but #{fee.id} had errors #{fee.errors.inspect}") unless fee.valid?
|
57
57
|
end
|
58
58
|
|
59
59
|
# A membership could go from individual to organization
|
@@ -64,7 +64,7 @@ module ActsAsSlugged
|
|
64
64
|
end
|
65
65
|
|
66
66
|
if (count = self.class.where(slug: slug).count) > 0
|
67
|
-
uid =
|
67
|
+
uid = Time.zone.now.nsec.to_s(16) # This is a unique 7-8 digit url safe hex string
|
68
68
|
slug = "#{slug}-#{uid}"
|
69
69
|
end
|
70
70
|
|
@@ -72,6 +72,38 @@ module EffectiveDeviseUser
|
|
72
72
|
[:email, :password, :password_confirmation, :first_name, :last_name, :name, :login]
|
73
73
|
end
|
74
74
|
|
75
|
+
def filter_parameters
|
76
|
+
[
|
77
|
+
:encrypted_password,
|
78
|
+
:reset_password_token,
|
79
|
+
:reset_password_sent_at,
|
80
|
+
:remember_created_at,
|
81
|
+
:sign_in_count,
|
82
|
+
:current_sign_in_at,
|
83
|
+
:last_sign_in_at,
|
84
|
+
:current_sign_in_ip,
|
85
|
+
:last_sign_in_ip,
|
86
|
+
:invitation_token,
|
87
|
+
:invitation_created_at,
|
88
|
+
:invitation_sent_at,
|
89
|
+
:invitation_accepted_at,
|
90
|
+
:invitation_limit,
|
91
|
+
:invited_by_type,
|
92
|
+
:invited_by_id,
|
93
|
+
:invitations_count,
|
94
|
+
:uid,
|
95
|
+
:provider,
|
96
|
+
:access_token,
|
97
|
+
:refresh_token,
|
98
|
+
:token_expires_at,
|
99
|
+
:avatar_url,
|
100
|
+
:roles_mask,
|
101
|
+
:confirmation_sent_at,
|
102
|
+
:confirmed_at,
|
103
|
+
:unconfirmed_email
|
104
|
+
]
|
105
|
+
end
|
106
|
+
|
75
107
|
def from_omniauth(auth, params)
|
76
108
|
invitation_token = (params.presence || {})['invitation_token']
|
77
109
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: effective_resources
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.7.
|
4
|
+
version: 2.7.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Code and Effect
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-04-
|
11
|
+
date: 2023-04-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|