effective_datatables 4.11.1 → 4.13.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/assets/javascripts/effective_datatables/initialize.js.coffee +2 -0
- data/app/models/effective/datatable_dsl_tool.rb +5 -5
- data/app/models/effective/datatable_value_tool.rb +1 -0
- data/app/models/effective/effective_datatable/dsl/bulk_actions.rb +1 -1
- data/lib/effective_datatables/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 026700452dbbf432629b18e46f8517979b9fe2784f021f36569b649b578f2811
|
4
|
+
data.tar.gz: 955bdbd430efc062dd92d9b787f5155209de879047b8ed858d59c4385137c1eb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 28e8de18bec21967229456d63b001e4564d43aecdb69ae854da39ae87bbea409d3b804c91b00c6ceebd7f64c5409a47d41346ecf0e97538f40d0742842590947
|
7
|
+
data.tar.gz: ba10b13bd4fbc714dfc5ffacd514b8476fc3042e60b59f629bff465d9b1b9de86d335917f61f01c8092b1dc43c06764e4b6f4ff48346dd19d7e52c81d15c9db1
|
@@ -208,3 +208,5 @@ $(document).on 'page:change', -> initializeDataTables()
|
|
208
208
|
$(document).on 'turbolinks:load', -> initializeDataTables()
|
209
209
|
$(document).on 'turbolinks:render', -> initializeDataTables()
|
210
210
|
$(document).on 'turbolinks:before-cache', -> destroyDataTables()
|
211
|
+
$(document).on 'turbo:load', -> initializeDataTables()
|
212
|
+
$(document).on 'turbo:before-cache', -> destroyDataTables()
|
@@ -18,7 +18,7 @@ module Effective
|
|
18
18
|
@view = datatable.view
|
19
19
|
end
|
20
20
|
|
21
|
-
def method_missing(method, *args, &block)
|
21
|
+
def method_missing(method, *args, **kwargs, &block)
|
22
22
|
# Catch a common error
|
23
23
|
if [:bulk_actions, :charts, :collection, :filters].include?(method) && in_datatables_do_block
|
24
24
|
raise "#{method} block must be declared outside the datatable do ... end block"
|
@@ -26,15 +26,15 @@ module Effective
|
|
26
26
|
|
27
27
|
if datatable.respond_to?(method)
|
28
28
|
if block_given?
|
29
|
-
datatable.send(method, *args) { yield }
|
29
|
+
datatable.send(method, *args, **kwargs) { yield }
|
30
30
|
else
|
31
|
-
datatable.send(method, *args)
|
31
|
+
datatable.send(method, *args, **kwargs)
|
32
32
|
end
|
33
33
|
elsif view.respond_to?(method)
|
34
34
|
if block_given?
|
35
|
-
view.send(method, *args) { yield }
|
35
|
+
view.send(method, *args, **kwargs) { yield }
|
36
36
|
else
|
37
|
-
view.send(method, *args)
|
37
|
+
view.send(method, *args, **kwargs)
|
38
38
|
end
|
39
39
|
else
|
40
40
|
super
|
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.
|
4
|
+
version: 4.13.0
|
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-
|
11
|
+
date: 2022-08-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|