forest_liana 9.3.11 → 9.3.12

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
  SHA256:
3
- metadata.gz: 51c2f75d737577dc6cb9e113c3cfb07ea605fa43fb737f66bf192f042f15344a
4
- data.tar.gz: 59b9ccf9c1bd5ec8012e0124cd3ee9dc2309214e3d83e3af2ed3c03593a4ffb5
3
+ metadata.gz: 89d96f304e99993a29e7d20a7838db92f58cb19a31ff880357df3f0894139f43
4
+ data.tar.gz: 72039990bc82a0ac239195c332bf4dd52067eed7d221013023ce4af5ade1829d
5
5
  SHA512:
6
- metadata.gz: ff6b7f73042d7e32670e1e8dbab2f79101be9761035fa54748c7f227ce471620fd5c740587a746b7969d499754040cfc05013d4c77ef081e45bd7a20efde39e0
7
- data.tar.gz: 0fec0c2f5f09d7baa46703873586593428224358e417146414b956cb0bb1c5996aabc77704ee92f228d7c54edfaafcb72841d2a3ae2cddf815b8566585fd4751
6
+ metadata.gz: 1ea962d090a1ef4f60ae877c2fba8f0674264a8271eddb6c6398979ceb2e52bb523a823f63abc15b47633c6096454227a98b580684d4255179ead3207607d62f
7
+ data.tar.gz: 97f31c50316bb6f08d6f664ae06d40475142f877d2f9a5b20f565ab3fa4b162e3523f368fcfaa1596e085826e8b454e41c9ab39eec3b67355177137a19571c57
@@ -104,14 +104,17 @@ module ForestLiana
104
104
  end
105
105
  association_search = association_search.compact
106
106
  end
107
+
107
108
  if @includes.include? association.to_sym
108
109
  resource = @resource.reflect_on_association(association.to_sym)
109
- resource.klass.columns.each do |column|
110
- if !(column.respond_to?(:array) && column.array) && text_type?(column.type)
111
- if @collection.search_fields.nil? || (association_search &&
112
- association_search.include?(column.name))
113
- conditions << association_search_condition(resource.table_name,
114
- column.name)
110
+ unless (SchemaUtils.polymorphic?(resource))
111
+ resource.klass.columns.each do |column|
112
+ if !(column.respond_to?(:array) && column.array) && text_type?(column.type)
113
+ if @collection.search_fields.nil? || (association_search &&
114
+ association_search.include?(column.name))
115
+ conditions << association_search_condition(resource.table_name,
116
+ column.name)
117
+ end
115
118
  end
116
119
  end
117
120
  end
@@ -1,3 +1,3 @@
1
1
  module ForestLiana
2
- VERSION = "9.3.11"
2
+ VERSION = "9.3.12"
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: 9.3.11
4
+ version: 9.3.12
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sandro Munda
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-06-14 00:00:00.000000000 Z
11
+ date: 2024-07-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails