neo4j 1.0.0.beta.10 → 1.0.0.beta.11
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/neo4j/rails/model.rb +2 -1
- data/lib/neo4j/version.rb +1 -1
- metadata +2 -2
data/lib/neo4j/rails/model.rb
CHANGED
@@ -132,7 +132,8 @@ class Neo4j::Model
|
|
132
132
|
end
|
133
133
|
|
134
134
|
# Check if we want to destroy not found nodes (e.g. {..., :_destroy => '1' } ?
|
135
|
-
destroy = attr[:_destroy]
|
135
|
+
destroy = attr[:_destroy] && attr[:_destroy] != '0'
|
136
|
+
|
136
137
|
if found
|
137
138
|
if destroy
|
138
139
|
found.destroy if allow_destroy
|
data/lib/neo4j/version.rb
CHANGED