active_orm 5.0.2 → 5.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/active_orm/redis/base.rb +4 -0
- data/lib/active_orm/version.rb +1 -1
- 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: 7ef9683edfd6554107a0af7c49156aa99b0fd9dd
|
4
|
+
data.tar.gz: d0c59616f7c6c3a2420782f1b3508e778db70ba1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 656761b1f7eb5b4e34a2e6e2d170f2e937d350487728addbd6820b5b45832bffb6fb6b4e53b160ad83ec25b3688e9ad40256c6f822edce6ca2e293a4f4b9ed02
|
7
|
+
data.tar.gz: '001973e722fe4ae231b4bdb6070d83d23494206d9cf47dffc7b094d1df3dcf31803e05d208e60ed1543c19d58511a101d16644e40a521106fac9953eb9ddd2a3'
|
@@ -43,6 +43,8 @@ class ActiveOrm::Redis::Base
|
|
43
43
|
end
|
44
44
|
|
45
45
|
def metamorph_array(datum)
|
46
|
+
datum = metaform(datum)
|
47
|
+
|
46
48
|
case datum.first.class.name
|
47
49
|
when 'Array' then datum.map { |arr| metaform_array(arr) }
|
48
50
|
when 'Hash' then datum.map { |hsh| metaform_hash(hsh) }
|
@@ -51,6 +53,8 @@ class ActiveOrm::Redis::Base
|
|
51
53
|
end
|
52
54
|
|
53
55
|
def metamorph(datum)
|
56
|
+
datum = metaform(datum)
|
57
|
+
|
54
58
|
case datum.class.name
|
55
59
|
when 'Array' then metamorph_array(datum)
|
56
60
|
when 'Hash' then metaform_hash(datum)
|
data/lib/active_orm/version.rb
CHANGED