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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f15d8d045bf321f5d7268594b42c8cb2cceb9dcd
4
- data.tar.gz: b32ee3894276b2c1005f6ba3ecbe8fb5cefaec50
3
+ metadata.gz: 097cc70133bbf8a7186e9c6873c5d7b74b772e2f
4
+ data.tar.gz: 20cb0b86665a6ec1858c782dde578b6a7005f9da
5
5
  SHA512:
6
- metadata.gz: 04b156619131ab3532ee9aff962d01a4b424c8c362a4b41344652b4c384005ee4e63bcda9910a23d1a786716b5c3dac393b5e1b0ce6daefb60efbe1f9fa28b06
7
- data.tar.gz: 9564a29336242f01d03fb9e9efce05a597f5ed32a0ade9915e05581f3a3dd38a71efe7f9c437004d765c4000e32b85478d40f57be2900f87b19846f40e5974ea
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.select { |i| !i.marked_for_destruction? }.select { |i|
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
  {
@@ -1,3 +1,3 @@
1
1
  module ActiveRecordSurvey
2
- VERSION = "0.1.45"
2
+ VERSION = "0.1.46"
3
3
  end
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.45
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-27 00:00:00.000000000 Z
11
+ date: 2016-11-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activerecord