effective_datatables 4.14.0 → 4.14.2
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
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a5491d6a05966b96b5e693b56f12063faae6bc73023af3b80a912e9c86cf1f5f
|
4
|
+
data.tar.gz: 409e0101d6ee6f450bd76530814bb3e2a096c58acfd863eee22843c154023e2e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fa622fce78f2aaeb690221f9efa52e70c9f1376b3971234c1a9d342b8a84e5f3c6d83cf1144b1a1c7159627d59f5beb761e13f9ec15623a4d149f46092ecc0dd
|
7
|
+
data.tar.gz: 00a5f55efd132ea4aef1b989fd8d5d346228ddc0696c692580f1177e47ce2cce9f5dba9e46a25992ee35ab2001165ccc7ba57c0b93baba6a758237f78e1e2e68
|
@@ -79,7 +79,7 @@ module Effective
|
|
79
79
|
def search_column(collection, original, column, index)
|
80
80
|
Rails.logger.info "VALUE TOOL: search_column #{column.to_s} #{original} #{index}" if EffectiveDatatables.debug
|
81
81
|
|
82
|
-
fuzzy = column[:search][:
|
82
|
+
fuzzy = (column[:search][:operation] == :matches)
|
83
83
|
|
84
84
|
term = Effective::Attribute.new(column[:as]).parse(original, name: column[:name])
|
85
85
|
term_downcased = term.to_s.downcase
|
@@ -195,8 +195,8 @@ module Effective
|
|
195
195
|
|
196
196
|
# Assign default search operation
|
197
197
|
search[:operation] ||= search.delete(:op)
|
198
|
-
search[:operation] ||= :eq if search[:as] == :select
|
199
198
|
search[:operation] ||= :matches if search[:fuzzy]
|
199
|
+
search[:operation] ||= :eq if search[:as] == :select
|
200
200
|
search[:operation] ||= search_resource.sql_operation(name, as: opts[:as])
|
201
201
|
|
202
202
|
# Assign default include_null
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: effective_datatables
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 4.14.
|
4
|
+
version: 4.14.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Code and Effect
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-01-
|
11
|
+
date: 2023-01-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|