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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 1a29d2ace2a0ede16ec430e6e1b4f14caa682329
4
- data.tar.gz: 1cea009f212ec9539259c1b3d264e8b309594401
3
+ metadata.gz: 54ea207f36a379b3c584d9c37fe2c045da8e8a01
4
+ data.tar.gz: f484ee30f29b4ae820470f1dd1bc3aa583bf8aaa
5
5
  SHA512:
6
- metadata.gz: 24ccd9259170d15ef0666204b2d471ffb50983d5c3558394a1bec7e6f6dc0e52f8b63ad7623e1c1cf03d61b4119dae605e361af1e1345d34d7ebd826488ff215
7
- data.tar.gz: 90c359170e28ad4eef51f9956f06cd21cb043c778770db32354d9391df40f55021771496131fea0660447df35c6b99459345a97fc0861fa619b73357bcc4fd10
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
 
@@ -1,3 +1,3 @@
1
1
  module ActiveNode
2
- VERSION = "2.3.2"
2
+ VERSION = "2.3.3"
3
3
  end
@@ -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.2
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-17 00:00:00.000000000 Z
11
+ date: 2015-04-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: active_attr