effective_datatables 4.14.0 → 4.14.2

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: fc47f42fc35402807796c781d25c4a2c04209c298524ff5097eccd4132e0831d
4
- data.tar.gz: 5237226dfc47dd03a9132f06a44bd664ce55c24016ea037c948ba781d05f4843
3
+ metadata.gz: a5491d6a05966b96b5e693b56f12063faae6bc73023af3b80a912e9c86cf1f5f
4
+ data.tar.gz: 409e0101d6ee6f450bd76530814bb3e2a096c58acfd863eee22843c154023e2e
5
5
  SHA512:
6
- metadata.gz: fca83c18fac2f69f8934f2835ff1e26f7c90ee71cac121ce61652a6a17dfe064e57c3f22e8e2335a0b6ca866b0e531886d396babb72dccbb3ba24166859a13b3
7
- data.tar.gz: 3bddcb7006524041110b313c5f5ce577c757c790abafac7e9324dbda6126c2a4a3472ee0ce28e63b81112562430adf7ecd93be994ac108f8e9730ec53fc3d496
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][:fuzzy]
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
@@ -1,3 +1,3 @@
1
1
  module EffectiveDatatables
2
- VERSION = '4.14.0'.freeze
2
+ VERSION = '4.14.2'.freeze
3
3
  end
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.0
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-04 00:00:00.000000000 Z
11
+ date: 2023-01-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails