active_node 2.3.2 → 2.3.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_node/relationship.rb +1 -1
- data/lib/active_node/version.rb +1 -1
- data/spec/functional/associations_spec.rb +3 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 54ea207f36a379b3c584d9c37fe2c045da8e8a01
|
4
|
+
data.tar.gz: f484ee30f29b4ae820470f1dd1bc3aa583bf8aaa
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 82318d09eb4b0c34346514fc2c956d6e9f622e2d588941f85506b9e2d490788be7d1c0453e006c7ce1cd32f638911b47d1b53bbe113285f641bcced0b992bfe1
|
7
|
+
data.tar.gz: 25acaa945884d9ed45d2ff00e21c03f6dc7a2d062c891445e7b22c15dd140e6564d8b9e2a973dbc3f5af7881894fbde4e2fbaee762bdd8db119da605878fd2c8
|
@@ -27,7 +27,7 @@ module ActiveNode
|
|
27
27
|
end
|
28
28
|
@id = get_id(Neo.db.create_relationship(association.reflection.type, from.id, to.id, @hash)).to_i
|
29
29
|
else
|
30
|
-
Neo.db.reset_relationship_properties(id, @hash)
|
30
|
+
Neo.db.reset_relationship_properties(id, @hash.select { |_, v| v.present? })
|
31
31
|
end
|
32
32
|
end
|
33
33
|
|
data/lib/active_node/version.rb
CHANGED
@@ -169,6 +169,9 @@ describe ActiveNode::Associations do
|
|
169
169
|
client=Client.find(client.id)
|
170
170
|
ar=client.address_rel
|
171
171
|
expect(ar[:address_type]).to eq('office')
|
172
|
+
ar[:address_type] = nil
|
173
|
+
client.save
|
174
|
+
expect(Client.find(client.id).address_rel[:address_type]).to be_nil
|
172
175
|
end
|
173
176
|
|
174
177
|
it 'should retrieve multiple relationships at once' do
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: active_node
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.3.
|
4
|
+
version: 2.3.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Heinrich Klobuczek
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-04-
|
11
|
+
date: 2015-04-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: active_attr
|