ocean-dynamo 1.0.7 → 1.0.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/ocean-dynamo/associations/has_many.rb +7 -1
- data/lib/ocean-dynamo/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: d978bad9958a6105af68a85d96d0d38b677f26b4
|
4
|
+
data.tar.gz: de5eecbb27c422971d41e5a78b905b4ea183cde0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d8253aa7f354f8d3295be2482ab792aa5c00fd297473cbad21eba2b3e3dd3eb3e54cd1a10894a9229a4a22c4a114833809baed95b445f7e0b73bbf884732e74f
|
7
|
+
data.tar.gz: 6385f3c5adab407a884bddfe592a453830792a7da8985851c14ab5e047377135676fc7b11cc1519c6cd5a88736d622990d22d6575e76ae2d726516df679acd77
|
@@ -111,7 +111,13 @@ module OceanDynamo
|
|
111
111
|
|
112
112
|
|
113
113
|
def condition_options(child_class)
|
114
|
-
|
114
|
+
hash_key = child_class.table_hash_key
|
115
|
+
range_key = child_class.table_range_key
|
116
|
+
ean = {}
|
117
|
+
ean["#H"] = hash_key.to_s
|
118
|
+
ean["#R"] = range_key.to_s if range_key
|
119
|
+
{ expression_attribute_names: ean,
|
120
|
+
key_condition_expression: "#H = :hashval AND #R >= :rangeval",
|
115
121
|
expression_attribute_values: { ":hashval" => id, ":rangeval" => "0" }
|
116
122
|
}
|
117
123
|
end
|
data/lib/ocean-dynamo/version.rb
CHANGED