hyper-resource 1.0.0.lap46 → 1.0.0.lap47
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/hyperloop/resource/client_drivers.rb +7 -1
- data/lib/hyperloop/resource/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e33c363402677aa96ee146307e23c05792d99b3d82fdfe8aae7a54cb3a6f7daf
|
4
|
+
data.tar.gz: d62d1365b846c09c3cf8091df16c8cb4cb2484bc6747d191890dfd4e257a2d83
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f1ab513a128cd843656fa2d74b1bafdf34ed4f5b95e5778b422b38aa8aea4525b7c2197fda5560a3c018c923cab2a1628e5db774bd5ca76d3acd6d76c2775c2f
|
7
|
+
data.tar.gz: d2e31b7154272250c92b643ba302521f4a08f02819cad6109bc9c707aa916727884afc9096eb5b7058629c3a663a7bce3ebf5f07b95aa560fc52fa82e19b5dfb
|
@@ -96,7 +96,13 @@ module Hyperloop
|
|
96
96
|
scope_fetch_state = record_class._class_fetch_states[data[:scope]]
|
97
97
|
if scope_fetch_state == 'f'
|
98
98
|
record_class._class_fetch_states[data[:scope]] = 'u'
|
99
|
-
|
99
|
+
scope_name, scope_params = data[:scope].split('_[')
|
100
|
+
if scope_params
|
101
|
+
scope_params = '[' + scope_params
|
102
|
+
record_class.send(data[:scope], JSON.parse(scope_params))
|
103
|
+
else
|
104
|
+
record_class.send(data[:scope])
|
105
|
+
end
|
100
106
|
end
|
101
107
|
elsif record_class.record_cached?(data[:id])
|
102
108
|
record = record_class.find(data[:id])
|