odata 0.6.5 → 0.6.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/lib/odata/entity_set.rb +2 -1
- data/lib/odata/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: 7bcb409923afacd4cbe61f5529778a48095d8bfa
|
4
|
+
data.tar.gz: 1e9717542f01cebe59d94f7cc96eaecc41105a5f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6bdf2a6ff80565a48c9c013d4bfacdd6d2051f7917c4cf2bbd708aa553fb2e2179e0d8943f53691e230c8fcb0e030bc6d6426a93ff4851e2e292060ee401cb98
|
7
|
+
data.tar.gz: 89ffb30a578f9dc4e66c3181f4f30598a0fca8499e101420cd80c1f5722c6eb0b57698a2e030ff00b8ad51257f562aa05c9af3d16cc5a82a3fd05fbb24006025
|
data/CHANGELOG.md
CHANGED
data/lib/odata/entity_set.rb
CHANGED
@@ -149,7 +149,8 @@ module OData
|
|
149
149
|
end
|
150
150
|
|
151
151
|
def setup_entity_post_request(entity)
|
152
|
-
|
152
|
+
primary_key = entity.send(:properties)[entity.primary_key].url_value
|
153
|
+
chunk = entity.is_new? ? name : "#{name}(#{primary_key})"
|
153
154
|
options = {
|
154
155
|
method: :post,
|
155
156
|
body: entity.to_xml.gsub(/\n\s+/, ''),
|
data/lib/odata/version.rb
CHANGED