json_api_resource_connecitons 0.2.1 → 0.2.2
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b2f8b1bb50a8efcd6b1e9c5af4b8f5bcc1df41d5
|
4
|
+
data.tar.gz: d211a1c9b636a87b6ea6acbd589288655f34ea6e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6a4bb213cbab9567a9bee64ca2d9a0b7d4d22173b9055a385a0ef5c4e89bb2bd7843878591cad1aa792757c9f5425432c3cbca41143a5f66338d720560079dbf
|
7
|
+
data.tar.gz: b1e724555479e29540cc96ec1066f9547a74f2556c49c36a5545755343869379ede601e0852abc0e259a16df6d782ae19eb2ac5bce136a943ad9321d1fbedf77
|
@@ -54,8 +54,8 @@ module JsonApiResource
|
|
54
54
|
# class | instance
|
55
55
|
class_string = client.is_a?(Class) ? client.to_s : client.class.to_s
|
56
56
|
class_string = class_string.underscore
|
57
|
-
|
58
|
-
"#{class_string}/#{action}/#{
|
57
|
+
formatted_args = args.present? ? ordered_args(*args) : nil
|
58
|
+
"#{class_string}/#{action}/#{formatted_args}"
|
59
59
|
end
|
60
60
|
|
61
61
|
def item_cache_key(client, action, id)
|
@@ -21,8 +21,9 @@ module JsonApiResource
|
|
21
21
|
|
22
22
|
def request( action, *args )
|
23
23
|
if ready_for_request?
|
24
|
-
|
25
|
-
|
24
|
+
|
25
|
+
client_args = args.deep_dup
|
26
|
+
result = client_request(action, *client_args)
|
26
27
|
|
27
28
|
cache_processor.write(result, client, action, *args) if cache?
|
28
29
|
|