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 +4 -4
- data/app/services/forest_liana/search_query_builder.rb +9 -6
- data/lib/forest_liana/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 89d96f304e99993a29e7d20a7838db92f58cb19a31ff880357df3f0894139f43
|
4
|
+
data.tar.gz: 72039990bc82a0ac239195c332bf4dd52067eed7d221013023ce4af5ade1829d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
110
|
-
|
111
|
-
if
|
112
|
-
|
113
|
-
|
114
|
-
|
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
|
data/lib/forest_liana/version.rb
CHANGED
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.
|
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-
|
11
|
+
date: 2024-07-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|