effective_datatables 4.17.2 → 4.17.3

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: ad7b621e95979cb0e0e41548ef4993a0efd1ca7f1d262656c4a04e611f99fe3d
4
- data.tar.gz: 657a4d88aab6e8eff27c86611bff1f35862b69fa30422fe2e29eb3ad0ecb7159
3
+ metadata.gz: 6f26ee8c45d6423c35786acd77acd78e6bd88bfe7e4be26b11aa6e7796cd9b3c
4
+ data.tar.gz: 8c573ae9e0cd5ba056ce26014e7a53344830af1e76070e7cd51b94d842d60671
5
5
  SHA512:
6
- metadata.gz: 033e9e91e76c4682a5dd7bcc02cb68ae4e17558bfe22f665f476ed970b2c75790b9a87e3982b74a254777b9edc6fdfa80e51e88f082c770c76511cbbeecf7800
7
- data.tar.gz: 5e3c4745edf257887fa236e0d974985a235599884ce912088140290afcdadcd13cd9ed9846d7bf2f758b4de0546b3d51c885b8aeeeeed90295de2f02ce7cfb3f
6
+ metadata.gz: 0d6f374f11e08457c04f8aafe89c00765959d7482fc757afb06d4afbaf2d8528fcabf77299ed220b3f19f06c20b3a0cac2ec510ff531f3d1a20e95d82752e9d9
7
+ data.tar.gz: 41238dfc0d0a80fbd39ef9b52644b442a30a8136c1d8c626ac79f01259ce2fced941d4dace99a9d2a2248894cf3297747463d3f730b00ecb4384ad1010011ad6
@@ -9,7 +9,7 @@ module Effective
9
9
  @datatable = datatable
10
10
 
11
11
  if datatable.active_record_collection?
12
- @columns = datatable.columns.select { |_, col| col[:sql_column].present? }
12
+ @columns = datatable.columns.select { |_, col| col[:sql_column].present? || (col[:search_method].present? && col[:sql_column] != false) }
13
13
  else
14
14
  @columns = {}
15
15
  end
@@ -12,7 +12,7 @@ module Effective
12
12
  if datatable.array_collection?
13
13
  @columns = datatable.columns
14
14
  else
15
- @columns = datatable.columns.select { |_, col| col[:sql_column].blank? }
15
+ @columns = datatable.columns.reject { |_, col| col[:sql_column].present? || (col[:search_method].present? && col[:sql_column] != false) }
16
16
  end
17
17
  end
18
18
 
@@ -1,3 +1,3 @@
1
1
  module EffectiveDatatables
2
- VERSION = '4.17.2'.freeze
2
+ VERSION = '4.17.3'.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.17.2
4
+ version: 4.17.3
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-30 00:00:00.000000000 Z
11
+ date: 2023-06-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -195,7 +195,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
195
195
  - !ruby/object:Gem::Version
196
196
  version: '0'
197
197
  requirements: []
198
- rubygems_version: 3.1.2
198
+ rubygems_version: 3.4.10
199
199
  signing_key:
200
200
  specification_version: 4
201
201
  summary: Uniquely powerful server-side searching, sorting and filtering of any ActiveRecord