unidom-visitor 1.10 → 1.11
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
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: e48ebebb1b63ac2cdf105fffd01697b0ddd4a00d
|
|
4
|
+
data.tar.gz: 23057f0e338c11f6f2c2cf0dc0fd917bd260d935
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: a61c04b79e23c7caf2e20960d9cb99f3273dc0c8029ff570c779072f9e99be114051f760c794cb48ad7ac8458813fbfe9808b0d26fe8be61e37a280cd7c60d20
|
|
7
|
+
data.tar.gz: 09d4c093b59b7e41d57f451147d52dbb8cccce749c4c9cc6dc3214fb3d83ded55ac010c967c531e4be50cf09e0391f374c9ccb202f286650d852974b510b9087
|
data/README.md
CHANGED
|
@@ -100,7 +100,8 @@ The As Visitor concern do the following tasks for the includer automatically:
|
|
|
100
100
|
8. Define the #is_authenticated! method as: ``is_authenticated!(through: nil, at: Time.now, flag_code: 'RQRD')``
|
|
101
101
|
9. Define the #is_authenticated? method as: ``is_authenticated?(through: nil, at: Time.now, flag_code: 'RQRD')``
|
|
102
102
|
10. Define the #cognize! method as: ``cognize!(it, at: Time.now, primary: true)``
|
|
103
|
-
11. Define the
|
|
103
|
+
11. Define the #cognize? method as: ``cognize?(it, at: Time.now, primary: true)``
|
|
104
|
+
12. Define the .sign_up! method as: ``sign_up!(it, as: nil, through: nil, at: Time.now, flag_code: 'RQRD', primary: true)``
|
|
104
105
|
|
|
105
106
|
### As Identity concern
|
|
106
107
|
|
|
@@ -120,4 +121,5 @@ The As Credential concern do the following tasks for the includer automatically:
|
|
|
120
121
|
|
|
121
122
|
The As Party concern do the following tasks for the includer automatically:
|
|
122
123
|
1. Define the has_many :recognizations macro as: ``has_many :recognizations, class_name: 'Unidom::Visitor::Recognization', as: :party``
|
|
123
|
-
2. Define the #is_cognized! method as: ``is_cognized!(via: nil, at: Time.now, primary: true)``
|
|
124
|
+
2. Define the #is_cognized! method as: ``is_cognized!(via: nil, at: Time.now, primary: true)``
|
|
125
|
+
3. Define the #is_cognized? method as: ``is_cognized!(via: nil, at: Time.now, primary: true)``
|
|
@@ -10,7 +10,6 @@ module Unidom::Visitor::Concerns::AsParty
|
|
|
10
10
|
recognizations.create! visitor: via, elemental: primary, opened_at: at
|
|
11
11
|
end
|
|
12
12
|
|
|
13
|
-
=begin
|
|
14
13
|
def is_cognized?(via: nil, at: Time.now, primary: true)
|
|
15
14
|
query = recognizations
|
|
16
15
|
query = query.visitor_is via if via.present?
|
|
@@ -18,7 +17,6 @@ module Unidom::Visitor::Concerns::AsParty
|
|
|
18
17
|
query = query.valid_at now: at if at.present?
|
|
19
18
|
query = query.alive.exists?
|
|
20
19
|
end
|
|
21
|
-
=end
|
|
22
20
|
|
|
23
21
|
end
|
|
24
22
|
|
|
@@ -43,7 +43,6 @@ module Unidom::Visitor::Concerns::AsVisitor
|
|
|
43
43
|
recognizations.create! party: it, elemental: primary, opened_at: at
|
|
44
44
|
end
|
|
45
45
|
|
|
46
|
-
=begin
|
|
47
46
|
def cognize?(it, at: Time.now, primary: true)
|
|
48
47
|
query = recognizations
|
|
49
48
|
query = query.party_is it if it.present?
|
|
@@ -51,7 +50,6 @@ module Unidom::Visitor::Concerns::AsVisitor
|
|
|
51
50
|
query = query.valid_at now: at if at.present?
|
|
52
51
|
query.alive.exists?
|
|
53
52
|
end
|
|
54
|
-
=end
|
|
55
53
|
|
|
56
54
|
end
|
|
57
55
|
|