globalid 0.3.1 → 0.3.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 +4 -4
- data/lib/global_id/identification.rb +8 -0
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 8de6b91a01618007f9a6e49dbd58a90624388f7f
|
|
4
|
+
data.tar.gz: 43b53c7a32f09a2460aba23c8dfad3a0c216dd15
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 22b319f6839af32cb2ae8b9f6a9f08a261655ec9e879ba5ad49c1cc2236c630e30fcff0ac4a070db2a96adbb5f9a70716d46ef8467c633b942980943c26da93d
|
|
7
|
+
data.tar.gz: 265231350914b1259566b568a4dd1d69a5790a397792da0eeea658a9abb1468ff61db1337051251aceaf9c72910dd15589c98d5283cb4e2e383855987601b887
|
|
@@ -9,9 +9,17 @@ class GlobalID
|
|
|
9
9
|
end
|
|
10
10
|
alias to_gid to_global_id
|
|
11
11
|
|
|
12
|
+
def to_gid_param
|
|
13
|
+
to_global_id.to_param
|
|
14
|
+
end
|
|
15
|
+
|
|
12
16
|
def to_signed_global_id(options = {})
|
|
13
17
|
SignedGlobalID.create(self, options)
|
|
14
18
|
end
|
|
15
19
|
alias to_sgid to_signed_global_id
|
|
20
|
+
|
|
21
|
+
def to_sgid_param(options = {})
|
|
22
|
+
to_signed_global_id(options).to_param
|
|
23
|
+
end
|
|
16
24
|
end
|
|
17
25
|
end
|