forest_liana 2.11.6 → 2.11.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 6297f6f39b10f5e8f574f9aa39b0c528e3b586b6
4
- data.tar.gz: 6f5ad448a771fa43dc12e2ecbe3b78d923725d74
3
+ metadata.gz: d523f6f86ae62d440377f1e369655cbb6326e54e
4
+ data.tar.gz: c85db323833602667ad42c9a26d4e7485306ca70
5
5
  SHA512:
6
- metadata.gz: c0ad6910fcd1b89358e43bcc5ffbc73502a2b214ec2ba8cee8671e8917416160b555d788266ca115f27005b6bee0d5e2527ec120839f5e7d53b3a0bd6e30d774
7
- data.tar.gz: 987ea9114d36819c88e30eb6c310f7502dbede8f11355ed17e40c9c785d15350e9914b1ce19bc1451c6d503b2379c5916534af650b237648f234cbacef8d0d37
6
+ metadata.gz: a27cbf808cf4a049cb9b1f6f234222b9e91e8863559cbe5cc49c555bea377c25a55da3c31da5fa4fb36c526425df9461f4aae52482de6d0a9fecee37a8db4d9d
7
+ data.tar.gz: 72e2b195398433e3031bf8dca8d7d0d8efbeb8920f1d421d0c8d77f671dc9860ab98c5870d339fa45b21037297b060b90331ecdb5934be20107da137896c75d6
@@ -16,7 +16,11 @@ module ForestLiana
16
16
  def includes_for_serialization
17
17
  includes_initial = includes
18
18
  includes_for_smart_belongs_to = @collection.fields_smart_belongs_to.map { |field| field[:field] }
19
- includes_for_smart_belongs_to = includes_for_smart_belongs_to & @field_names_requested
19
+
20
+ if @field_names_requested
21
+ includes_for_smart_belongs_to = includes_for_smart_belongs_to & @field_names_requested
22
+ end
23
+
20
24
  includes_initial.concat(includes_for_smart_belongs_to).map(&:to_s)
21
25
  end
22
26
  end
@@ -1,3 +1,3 @@
1
1
  module ForestLiana
2
- VERSION = "2.11.6"
2
+ VERSION = "2.11.7"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: forest_liana
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.11.6
4
+ version: 2.11.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sandro Munda
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-08-09 00:00:00.000000000 Z
11
+ date: 2018-08-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails