effective_datatables 4.13.0 → 4.13.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: 026700452dbbf432629b18e46f8517979b9fe2784f021f36569b649b578f2811
4
- data.tar.gz: 955bdbd430efc062dd92d9b787f5155209de879047b8ed858d59c4385137c1eb
3
+ metadata.gz: d9144f742099923e8f4029b91ec95f0f72a7448a885d60f1c26512fe84740af3
4
+ data.tar.gz: 75d5118016122bb723098f3b42c1110b4029b9f8485a16fdb6cf0bc6a13ae538
5
5
  SHA512:
6
- metadata.gz: 28e8de18bec21967229456d63b001e4564d43aecdb69ae854da39ae87bbea409d3b804c91b00c6ceebd7f64c5409a47d41346ecf0e97538f40d0742842590947
7
- data.tar.gz: ba10b13bd4fbc714dfc5ffacd514b8476fc3042e60b59f629bff465d9b1b9de86d335917f61f01c8092b1dc43c06764e4b6f4ff48346dd19d7e52c81d15c9db1
6
+ metadata.gz: 50b2cfbf7a71f94dd61e1891bae7688b974c14e072577c408a1ca17e064e8ff1885b76643eb5efaf6df1b9ceaa8fe2a51ce3587c4ec6cfc8478cb6e3fbc73514
7
+ data.tar.gz: a702fed36f9a6a2fc489c3f8dd9367f6390f7b20b5f1d0a3a6cc7fda8b07957da376d8bf5795037b3e70f072c1fd278563c5fab0e478d827285af2aa5e16bd37
@@ -93,7 +93,7 @@ module Effective
93
93
  collection.select! do |row|
94
94
  obj = row[index]
95
95
  value = obj_to_value(row[index], column, row)
96
- next if value.blank?
96
+ next if value.nil? || value == ''
97
97
 
98
98
  case column[:as]
99
99
  when :boolean
@@ -10,14 +10,14 @@ module Effective
10
10
  return @_datatables_ajax_request unless @_datatables_ajax_request.nil?
11
11
  return unless view.respond_to?(:params)
12
12
 
13
- @_datatables_ajax_request = (view.present? && view.params.key?(:draw) && view.params.key?(:columns))
13
+ @_datatables_ajax_request = (view.params.key?(:draw) && view.params.key?(:columns))
14
14
  end
15
15
 
16
16
  def datatables_inline_request?
17
17
  return @_datatables_inline_request unless @_datatables_inline_request.nil?
18
18
  return unless view.respond_to?(:params)
19
19
 
20
- @_datatables_inline_request = (view.present? && view.params[:_datatable_id].to_s.split('-')[0...-1] == to_param.split('-')[0...-1])
20
+ @_datatables_inline_request = (view.params[:_datatable_id].to_s.split('-')[0...-1] == to_param.split('-')[0...-1])
21
21
  end
22
22
 
23
23
  def params
@@ -1,3 +1,3 @@
1
1
  module EffectiveDatatables
2
- VERSION = '4.13.0'.freeze
2
+ VERSION = '4.13.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.13.0
4
+ version: 4.13.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: 2022-08-10 00:00:00.000000000 Z
11
+ date: 2022-11-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails