active_record_survey 0.1.45 → 0.1.46
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/active_record_survey/survey.rb +2 -1
- data/lib/active_record_survey/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: 097cc70133bbf8a7186e9c6873c5d7b74b772e2f
|
4
|
+
data.tar.gz: 20cb0b86665a6ec1858c782dde578b6a7005f9da
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: da323dfe54ca2c301bc3cbc50fdb5edb280feb38346fffbff6e31032c9ec5996620cebd38f61fe6253a7e43777fb719ca00ea1baeee7ccdd19b3fb34100336e8
|
7
|
+
data.tar.gz: 7f8b23cfa0273126bffba10875947937ece3e742c356e0ebe26f4dbff20d2382bd9d2e498fadafd1675cce85f0a9e9d9f00ed5268b29734e6f21497af48896da
|
@@ -26,7 +26,8 @@ module ActiveRecordSurvey
|
|
26
26
|
|
27
27
|
# All the connective edges
|
28
28
|
def edges
|
29
|
-
self.node_maps.
|
29
|
+
self.node_maps.includes(:node, parent:[ :node ])
|
30
|
+
.select { |i| !i.marked_for_destruction? }.select { |i|
|
30
31
|
i.node && i.parent
|
31
32
|
}.collect { |i|
|
32
33
|
{
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: active_record_survey
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.46
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Butch Marshall
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-11-
|
11
|
+
date: 2016-11-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activerecord
|