active_node 2.1.0 → 2.1.1
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/graph/builder.rb +2 -2
- data/lib/active_node/version.rb +1 -1
- 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: 26171a6609bb3a3042fd11f4202bb9abc700315f
|
4
|
+
data.tar.gz: e888b8fb7acf8cdee146d4a2aaa29052c7ce219a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2ac77c3a6654c341b368fcf60c317ef04bdee15d793332373070bd08658a8daae18e719ebdb23c758f5515b7e8829e1f385a7a4cd8a7c4261c8e81621c5db932
|
7
|
+
data.tar.gz: 075a8582b6c6e28fd0b60483fcd141d9d680b9e34dfcc411ee528e6e7d34e1948ac1c9b0e5658ea609262b4a9633116da35ea4eb50ac6e2348b5a2704b13596a
|
@@ -16,7 +16,7 @@ module ActiveNode
|
|
16
16
|
end
|
17
17
|
|
18
18
|
def build *objects
|
19
|
-
ids = objects.map { |o| o.is_a?(ActiveNode::Base) ? o.id.tap { |id| @object_cache[id]=o } : o }
|
19
|
+
ids = objects.map { |o| o.is_a?(ActiveNode::Base) ? o.id.tap { |id| @object_cache[id]=o } : extract_id(o) }
|
20
20
|
parse_results execute(ids.compact)
|
21
21
|
@object_cache.slice(*ids).values
|
22
22
|
end
|
@@ -27,7 +27,7 @@ module ActiveNode
|
|
27
27
|
end
|
28
28
|
|
29
29
|
def execute(ids)
|
30
|
-
q="start n0=node({ids}) #{query}#{"where n0#{label @klass}" if @klass} return #{list_with_rel(@reflections.size)} order by #{created_at_list(@reflections.size)}"
|
30
|
+
q="start n0=node({ids}) #{query} #{"where n0#{label @klass}" if @klass} return #{list_with_rel(@reflections.size)} order by #{created_at_list(@reflections.size)}"
|
31
31
|
Neo.db.execute_query(q, ids: ids)
|
32
32
|
end
|
33
33
|
|
data/lib/active_node/version.rb
CHANGED
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.1.
|
4
|
+
version: 2.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Heinrich Klobuczek
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-04-
|
11
|
+
date: 2014-04-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: active_attr
|