effective_datatables 4.11.2 → 4.12.0

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: 1c5483c634b1459438b847c332144a23391c83f236f28c6cddad7c7a56314f51
4
- data.tar.gz: f40f28f24b59f41e1fae0393c98def60fd6983c150925144006068dae66a1d9d
3
+ metadata.gz: 42b5024f89eb0023d4726035fd8312fae684f291cc108ca3adfb16bdf830aac5
4
+ data.tar.gz: 411a3ec031d8ec63b7f12fa71d71ba5aa50743b24c145d494d814e77081aea40
5
5
  SHA512:
6
- metadata.gz: 3356da223d7b3060e4c5b4a0a3ccb3d2a0060d11687a710a85319e0996bb8e9b2ad96deb58a745495df55e713ec46e8643afb70c3e9d15ef466045f40bd5adfb
7
- data.tar.gz: ffb6ba5ea8152d153a106f58463c426c11b1e13dfd6c98c853ac2fae8a98cd10e85dfe455bd52c1d435fc682b1ec316ecd121c551fdbdeafe07b5a14e05f8f5b
6
+ metadata.gz: 9b14bbea43b5c06f24cec46c1ffbee82dc86806deefc0bd81dc74f12dd73a850004b4dac59dac83fd24fe69a4cf75b281a2f498b4752035d4a13d2be2ef1c07c
7
+ data.tar.gz: 2cbf3ed396bb3be677531d02220de5fa1952ea01c481c7ffb426429de9ed0050a65923debfba606cbe0344f57ebe79fe33f1ef464b13959140dc2ce0c5bf020f
@@ -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
@@ -36,7 +36,7 @@ module Effective
36
36
 
37
37
  opts[:class] = [opts[:class], 'dropdown-item'].compact.join(' ')
38
38
 
39
- link_to(title, url, opts)
39
+ link_to(title, url, **opts)
40
40
  end
41
41
 
42
42
  end
@@ -1,3 +1,3 @@
1
1
  module EffectiveDatatables
2
- VERSION = '4.11.2'.freeze
2
+ VERSION = '4.12.0'.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.11.2
4
+ version: 4.12.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-06-27 00:00:00.000000000 Z
11
+ date: 2022-08-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails