effective_datatables 4.17.2 → 4.17.4
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: '06189b222bdbaf62e5b823c4f2a86fad63f0864590edde7dad41e1d8c72b7eac'
|
4
|
+
data.tar.gz: 352172976389234dd13d08e6822ef18438683e08dbda77f0f30f57288c173090
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 953eb5f1cba86efab0fdcd8ba34de7253a8095dd9481e694eee5399931020b9d026a45066bd9497d07f665db48ae95df67e6859184af557d8fdc4341bd3ca27a
|
7
|
+
data.tar.gz: bf80a017f52a9073f755256bfaf88ba80ce8907a71377625021e16400d2cac1ff3cc1bdc85007ca7678e039506a5b59c168b36df6d377487bd89c61e132e6fd8
|
@@ -61,8 +61,14 @@ module Effective
|
|
61
61
|
|
62
62
|
# Checks en.datatables.admin/my_datatable
|
63
63
|
def self.datatable_name
|
64
|
-
|
65
|
-
value
|
64
|
+
key = "datatables.#{name.underscore}"
|
65
|
+
value = ::I18n.t(key)
|
66
|
+
|
67
|
+
if value.include?(key) # missing translation
|
68
|
+
name.titleize.split('/').last.chomp(' Datatable')
|
69
|
+
else
|
70
|
+
value
|
71
|
+
end
|
66
72
|
end
|
67
73
|
|
68
74
|
def datatable_name
|
@@ -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.
|
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
|
|
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.
|
4
|
+
version: 4.17.4
|
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-
|
11
|
+
date: 2023-08-03 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.
|
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
|