effective_datatables 3.7.9 → 3.7.10

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: b6619fc2ad39de48007f07293245a0ffece5d2cf9ec29690b1b248b36cd06a68
4
- data.tar.gz: 2d1fb883b54b2d88b2ce5a48debfb05450e5895724bb9ebbdbd6df5aa68f0547
3
+ metadata.gz: 6deb8662896755bcf70bcc3c31af6b1c6ad57655048f5265224f439a9752eca6
4
+ data.tar.gz: 0e733a4037689cbd408e6f9d90a84ad0b930cdca0969bffaf7eb94dfde52812c
5
5
  SHA512:
6
- metadata.gz: dafb28f5f0b675df2255656bd7a362e184d60b48a000c4a1c03966ea7bc5d18131c06e594db03950f8339d855031e84aed18ded3fa916a565b2cef2aa81d0cba
7
- data.tar.gz: be6c25366961b8b00998bf1d2122abc403d44d5fb14af5ae6ba5b073da42e715747a1847d5d072585d5c1f79416a65fcc906eb068f09fa39627d135db0f88a3c
6
+ metadata.gz: 0fe7db03c252f0e34d589ee86e96444a11db7bae88d38784bc8304e0b278a589b451df46c67edc1c996616fe4d0763a41e152888b314f293596b5a6cd4e4efc0
7
+ data.tar.gz: 21142fbcf932cf97bb389d87ebc9cc3879e11a2213d70e4697db30771c66d35b657299c2cf18c37521e0b4256f3a362b9bbfca562d890cee1080c093b7940ef0
@@ -75,8 +75,10 @@ module Effective
75
75
  def search_column(collection, value, column, sql_column)
76
76
  Rails.logger.info "COLUMN TOOL: search_column #{column.to_s} #{value} #{sql_column}" if EffectiveDatatables.debug
77
77
 
78
+ operation = (column[:search][:fuzzy] && column[:as] == :string) ? :matches : :eq
79
+
78
80
  Effective::Resource.new(collection)
79
- .search(column[:name], value, as: column[:as], operation: (column[:search][:fuzzy] ? :matches : :eq), column: sql_column)
81
+ .search(column[:name], value, as: column[:as], operation: operation, column: sql_column)
80
82
  end
81
83
 
82
84
  def paginate(collection)
@@ -1,3 +1,3 @@
1
1
  module EffectiveDatatables
2
- VERSION = '3.7.9'.freeze
2
+ VERSION = '3.7.10'.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: 3.7.9
4
+ version: 3.7.10
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-05-08 00:00:00.000000000 Z
11
+ date: 2023-05-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails