effective_datatables 4.15.0 → 4.15.1

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: e8e433f359f9879d96a6a5fc387d7a17bc00b7aa351c6d7e26ffc8b2bcccca10
4
- data.tar.gz: df96403a27342d13874832a107195ba75561410d08cf1893fccb75dceff79e80
3
+ metadata.gz: 97162d77c01d7bc35d4d9bbda9b7f61d815628c7ded32c1c9c8a0a16e630c42f
4
+ data.tar.gz: 2bd27055dd9822c798373d0f073dc049ce471401cef071d50320a02f03d5c491
5
5
  SHA512:
6
- metadata.gz: 623e9378a8787d73d6204ea0356382a1230d991634d2ae1c58fb8babfbae0fee872985e0ae052d12934fe1d673a3e142616fc58d0e03085ef3a08adce692f942
7
- data.tar.gz: 674f3b2d483621875d760834629d2c3964f0a6a006ec6b932466e0ee23580c1767a156ee5556ac6b5c0b40b525935dc906dca7e987e2c4bea2e6aa200f08a7bd
6
+ metadata.gz: b7a59f37ce683bfb17e6b75715dee88a9125d26380988d7e9db9fd2c7f818e00235ee7418680d3dad90dabcf3c4e991bfb81ca32b7a4b80556573bf722a7e49f
7
+ data.tar.gz: 11d06c3f01185c4d92248bb40a32e78376eca5ae6bbbbabd5997a9a4a0a52f4d6ce1fb70bca5b6c50aa4ad60fb747b7060b3aaaf39bae0fbb5d51420cfbe9cef
@@ -95,7 +95,9 @@ module Effective
95
95
  value = obj_to_value(row[index], column, row)
96
96
  next if value.nil? || value == ''
97
97
 
98
- case column[:as]
98
+ obj_equals = obj.respond_to?(column[:name]) && obj.send(column[:name]).to_s.downcase == term_downcased
99
+
100
+ obj_equals || case column[:as]
99
101
  when :boolean
100
102
  if fuzzy
101
103
  term ? (obj == true) : (obj != true)
@@ -1,3 +1,3 @@
1
1
  module EffectiveDatatables
2
- VERSION = '4.15.0'.freeze
2
+ VERSION = '4.15.1'.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.15.0
4
+ version: 4.15.1
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-02-09 00:00:00.000000000 Z
11
+ date: 2023-02-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails