forest_liana 9.3.10 → 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: 7b41f09562cb8cdf4fe34225cd51901e002e7e223fcdefaee9f2645e12c9bc95
4
- data.tar.gz: 8d1456dce99ccbc54abd92c62f44c8e9b10dec281c01545ec3d299fef2a96891
3
+ metadata.gz: 89d96f304e99993a29e7d20a7838db92f58cb19a31ff880357df3f0894139f43
4
+ data.tar.gz: 72039990bc82a0ac239195c332bf4dd52067eed7d221013023ce4af5ade1829d
5
5
  SHA512:
6
- metadata.gz: 5bdadc526907e977de8459f43bfaa53d7fececc76e2cbeb79ea973395ea92f53eb8bc75a06daa55ec9df7856184c884b00c633d75013a5a5c6877210ab77657f
7
- data.tar.gz: 68177e16ee3421950d80f3369eef54251dfcd1bc4dc92bdd606abd890c45b996f6387055ee7c391c772bbf9437f6969828a7f96a2f4863ca9f1c85a7aa5a8292
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.10"
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.10
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